DijkstraUndirectedSPDistTo Method |
Returns the length of a shortest path between the source vertex s and
vertex v.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic double DistTo(
int v
)
Parameters
- v
- Type: SystemInt32
the destination vertex
Return Value
Type:
Doublethe length of a shortest path between the source vertex
s and
the vertex
v;
Double.POSITIVE_INFINITY if no such path
See Also