TransitiveClosureReachable Method |
Is there a directed path from vertex v to vertex w in the digraph?
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic bool Reachable(
int v,
int w
)
Parameters
- v
- Type: SystemInt32
the source vertex - w
- Type: SystemInt32
the target vertex
Return Value
Type:
Booleantrue if there is a directed path from
v to
w,
false otherwise
See Also