makeSet method
void
makeSet(
- T element
Creates a new set containing the given element
If the element already exists, this operation has no effect.
Implementation
void makeSet(T element) {
if (!_nodes.containsKey(element)) {
_nodes[element] = UnionFindNode<T>(element);
_setCount++;
}
}