public class DijkstraShortestPath
extends java.lang.Object
Constructor and Description |
---|
DijkstraShortestPath() |
Modifier and Type | Method and Description |
---|---|
static <V,E> java.util.List<V> |
getShortestPath(Graph<V,E> graph,
V src,
V dest)
Returns the shortest path from the given source vertex to the given destination vertex using
the Dijkstra algorithm.
|
public static <V,E> java.util.List<V> getShortestPath(Graph<V,E> graph, V src, V dest)
graph
- src
- dest
-