Returns true if vertices v and w are in the same
connected component.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic bool Connected(
int v,
int w
)
Parameters
- v
- Type: SystemInt32
one vertex - w
- Type: SystemInt32
the other vertex
Return Value
Type:
Booleantrue if vertices
v and
w are in the same
connected component;
false otherwise
Exceptions
See Also