public class ShortestPathUtils extends Object
Constructor and Description |
---|
ShortestPathUtils() |
Modifier and Type | Method and Description |
---|---|
static <V,E> List<E> |
getPath(Graph<V,E> graph,
ShortestPath<V,E> sp,
V source,
V target)
Returns a
List of the edges on the shortest path from
source to target , in order of their
occurrence on this path. |
public static <V,E> List<E> getPath(Graph<V,E> graph, ShortestPath<V,E> sp, V source, V target)
List
of the edges on the shortest path from
source
to target
, in order of their
occurrence on this path.Copyright © 2014. All rights reserved.