public class Partition<E> extends Object
| Constructor and Description | 
|---|
| Partition() | 
| Modifier and Type | Method and Description | 
|---|---|
| Position<E> | find(Position<E> p)Finds the cluster containing the element identified by Position p
 and returns the Position of the cluster's leader. | 
| Position<E> | makeCluster(E e)Makes a new cluster containing element e and returns its position. | 
| void | union(Position<E> p,
     Position<E> q)Merges the clusters containing elements with positions p and q (if distinct). |