public class DisjointSet
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DisjointSet.DSNode |
| Constructor and Description |
|---|
DisjointSet() |
| Modifier and Type | Method and Description |
|---|---|
DisjointSet.DSNode |
find(DisjointSet.DSNode node) |
DisjointSet.DSNode |
find(java.lang.Object o) |
DisjointSet.DSNode |
makeSet(java.lang.Object object) |
int |
nrSets() |
DisjointSet.DSNode |
union(DisjointSet.DSNode nd1,
DisjointSet.DSNode nd2) |
public DisjointSet.DSNode makeSet(java.lang.Object object)
public DisjointSet.DSNode find(java.lang.Object o)
public DisjointSet.DSNode find(DisjointSet.DSNode node)
public DisjointSet.DSNode union(DisjointSet.DSNode nd1, DisjointSet.DSNode nd2)
public int nrSets()