public class ShortestPathUtils
extends java.lang.Object
| Constructor and Description |
|---|
ShortestPathUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <V,E> java.util.List<E> |
getPath(edu.uci.ics.jung.graph.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> java.util.List<E> getPath(edu.uci.ics.jung.graph.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.