V - the vertexW - the weightpublic interface VisitDistance<V,W extends java.lang.Number> extends VisitStrategy<V,W>
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<V,java.util.List<Edge<V,W>>> |
getLastDistance()
Get the last calculated distance to all the possible destinations
The map contains all the possible vertices that are reachable from the source set in the visit If there is no path between the destination and the source, then null is returned as accordingly to the map interface If the visit is not already been done, then the map is null. |
V |
getLastSource()
Get the last source vertex of the visit for calculating the destinations.
Returns null if the visit is not already been done |
visitjava.util.Map<V,java.util.List<Edge<V,W>>> getLastDistance() throws java.lang.NullPointerException
java.lang.NullPointerException - if the visit is not already been doneV getLastSource()