BreadthFirstPathsDistTo Method |
Returns the number of edges in a shortest path between the source vertex s
(or sources) and vertex v?
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic int DistTo(
int v
)
Parameters
- v
- Type: SystemInt32
v the vertex
Return Value
Type:
Int32the number of edges in a shortest path. If s is not connected to v, return
int.MaxValue
See Also