private static class StandardUnionFind.Node<E>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) E |
element
The element represented by this node.
|
(package private) StandardUnionFind.Node<E> |
parent
The parent node of this element.
|
(package private) int |
rank
A bound on the depth of the subtree rooted to this node.
|
(package private) int |
size
If this node is the root of a tree, this is the number of elements in the
tree.
|
StandardUnionFind.Node<E> parent
final E element
int rank
int size
Node(E element)