Class UniqueOrOneHopVertexPathSearchAlgo<V,C extends Number & Comparable<C>>

java.lang.Object
org.jhotdraw8.graph.path.algo.UniqueOrOneHopVertexPathSearchAlgo<V,C>
Type Parameters:
V - the vertex data type
C - the cost number type
All Implemented Interfaces:
VertexPathSearchAlgo<V,C>

public class UniqueOrOneHopVertexPathSearchAlgo<V,C extends Number & Comparable<C>> extends Object implements VertexPathSearchAlgo<V,C>
Builder for creating unique paths from a directed graph.

The builder searches for unique paths using a breadth-first search.
Returns only a path if it is unique or if there is only one hop from start to goal.

Author:
Werner Randelshofer