Click or drag to resize
UFUnion Method
Merges the component containing site p with the the component containing site q.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void Union(
	int p,
	int q
)

Parameters

p
Type: SystemInt32
p the integer representing one site
q
Type: SystemInt32
q the integer representing the other site
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionunless both 0 <= p < N and 0 <= q < N
See Also