N
- node classE
- edge classpublic interface APSPResult<N,E>
Modifier and Type | Method and Description |
---|---|
List<E> |
getShortestPath(N src,
N tgt)
Retrieves the shortest path between the given nodes, or null if there
exists no such path.
|
float |
getShortestPathDistance(N src,
N tgt)
Retrieves the length of the shortest path between the given nodes.
|
float getShortestPathDistance(N src, N tgt)
src
- the source nodetgt
- the target nodeGraphAlgorithms#INVALID_DISTANCE
if there exists no such path.List<E> getShortestPath(N src, N tgt)
src
- the source nodetgt
- the target nodeCopyright © 2015. All Rights Reserved.