public interface Distance<V>
Modifier and Type | Method and Description |
---|---|
Number |
getDistance(V source,
V target)
Returns the distance from the
source vertex
to the target vertex. |
Map<V,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 © 2014. All rights reserved.