Click or drag to resize
CCConnected Method
Returns true if vertices v and w are in the same connected component.

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

Parameters

v
Type: SystemInt32
one vertex
w
Type: SystemInt32
the other vertex

Return Value

Type: Boolean
true if vertices v and w are in the same connected component; false otherwise
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionunless 0 <= v, w < V
See Also