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

java.lang.Object
org.jhotdraw8.graph.path.algo.AnyShortestArcPathSearchAlgo<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 AnyShortestArcPathSearchAlgo<V,A,C extends Number & Comparable<C>> extends Object implements ArcPathSearchAlgo<V,A,C>
Searches an arbitrary shortest path from a set of start vertices to a set of goal vertices using Dijkstra's algorithm.

The provided cost function must return values >= 0 for all arrows.

Performance characteristics:

When the algorithm returns a back link
less or equal O( (|A| + |V|)*log|V| ) within max cost
When the algorithm returns null
exactly O( (|A| + |V|)*log|V| ) within max cost
References:
Edsger W. Dijkstra (1959)
A note on two problems in connexion with graphs, Problem 2. tum.de