UnionFindConnected Method |
Determines whether the specified elements are in the same component.
Namespace: Network.Sim.MiscellaneousAssembly: Network.Sim (in Network.Sim.exe) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic bool Connected(
int p,
int q
)
Parameters
- p
- Type: SystemInt32
The first element. - q
- Type: SystemInt32
The second element.
Return Value
Type:
Booleantrue if both elements are in the same component; Otherwise
false.
See Also