Class AnyArcPathSearchAlgo<V,A,C extends Number & Comparable<C>>

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

public class AnyArcPathSearchAlgo<V,A,C extends Number & Comparable<C>> extends Object implements ArcPathSearchAlgo<V,A,C>
Searches an arbitrary path from a set of start vertices to a set of goal vertices using a breadth-first search algorithm.

This algorithm ignores cost limit. If you need it, use one of the shortest path search algorithms.

Expected run time:

When the algorithm returns a back link
less or equal O( |A| + |V| ) within max depth
When the algorithm returns null
exactly O( |A| + |V| ) within max depth

References:

Robert Sedgewick, Kevin Wayne. (2011)
Algorithms, 4th Edition. Chapter 4. Breadth-First Search. math.cmu.edu