Interface Distance<V>
-
- All Known Implementing Classes:
DijkstraDistance
,DijkstraShortestPath
,UnweightedShortestPath
public interface Distance<V>
An interface for classes which calculate the distance between one vertex and another.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Number
getDistance(V source, V target)
Returns the distance from thesource
vertex to thetarget
vertex.java.util.Map<V,java.lang.Number>
getDistanceMap(V source)
Returns aMap
which maps each vertex in the graph (including thesource
vertex) to its distance (represented as a Number) fromsource
.
-