Click or drag to resize
TransitiveClosureReachable Method
Is there a directed path from vertex v to vertex w in the digraph?

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public bool Reachable(
	int v,
	int w
)

Parameters

v
Type: SystemInt32
the source vertex
w
Type: SystemInt32
the target vertex

Return Value

Type: Boolean
true if there is a directed path from v to w, false otherwise
See Also