Class UnionFind<T>
java.lang.Object
xyz.janboerman.scalaloader.util.UnionFind<T>
- Type Parameters:
T- the type of elements in the Union-Find
Represents a Union-Find (or 'disjoint union') data structure.
A Union-Find is a structure which partitions its members into disjoint sets. Each disjoint set is called a partition. Each partition is identified (uniquely) by its representative element.
This Union-Find does not support null elements.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UnionFind
public UnionFind()
-
-
Method Details
-
getParent
-
add
-
setParent
-
getRepresentative
-
unite
-
values
-
representatives
-
equals
-
hashCode
-