public interface Distance<V>
Modifier and Type | Method and Description |
---|---|
java.lang.Number |
getDistance(V source,
V target)
Returns the distance from the
source vertex
to the target vertex. |
java.util.Map<V,java.lang.Number> |
getDistanceMap(V source)
Returns a
Map which maps each vertex
in the graph (including the source vertex)
to its distance (represented as a Number)
from source . |
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence