V
- vertex typepublic interface ShortestPath<V>
Modifier and Type | Method and Description |
---|---|
double |
distance(V v)
Gets the shortest distance from the source to a vertex.
|
WeightedEdge<V> |
lastEdge(V v)
Gets the last edge of a vertex on its shortest distance from the source.
|
double distance(V v)
v
- a vertexWeightedEdge<V> lastEdge(V v)
v
- a vertex that is different from the sourcenull
if v
is inaccessible from the sourceCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.