V - Vertex typeE - Edge typepublic static class Graphs.FrozenGraph<V,E extends DefaultEdge> extends Object
| Modifier and Type | Method and Description |
|---|---|
List<List<V>> |
getPaths(V from,
V to)
Returns an iterator of all paths between two nodes,
in non-decreasing order of path lengths.
|
int |
getShortestDistance(V from,
V to)
Returns the shortest distance between two points, -1, if there is no path.
|
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.