V - the vertexW - the weightpublic interface VisitDistSourceDest<V,W extends java.lang.Number> extends VisitStrategy<V,W>
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Edge<V,W>> |
distance(Graph<V,W> graph,
V source,
V destination)
Get the distance from the source to the destination
The list contains the minimum path from the vertex marked as source to the destination vertex |
visitjava.util.List<Edge<V,W>> distance(Graph<V,W> graph, V source, V destination) throws java.lang.NullPointerException, java.lang.IllegalArgumentException
graph - the graph were to find the min pathsource - the source vertexdestination - the destination vertexjava.lang.NullPointerException - if one of the vertex is nulljava.lang.IllegalArgumentException - if one of the vertex is not contained in the graph