Class UnionFind
- Namespace
- AlgorithmsSW
- Assembly
- AlgorithmsSW.dll
An implementation of the union-find data structure.
[AlgorithmReference(1, 5)]
public class UnionFind
- Inheritance
-
UnionFind
- Inherited Members
- Extension Methods
Constructors
UnionFind(int)
public UnionFind(int vertexCount)
Parameters
vertexCount
int
Properties
ComponentCount
public int ComponentCount { get; }
Property Value
Methods
GetComponentIndex(int)
public int GetComponentIndex(int vertex)
Parameters
vertex
int
Returns
IsConnected(int, int)
public bool IsConnected(int vertex0, int vertex1)
Parameters
Returns
Union(int, int)
public void Union(int vertex0, int vertex1)