public void makeSet(E element){
  if (!elementToSet.containsKey(element)) {
    Set<E> set=new IdentityHashSet<E>();
    set.add(element);
    elementToSet.put(element,set);
    disjointSets.add(set);
  }
}

public void makeSet ( E element ) { if ( ! elementToSet . containsKey ( element ) ) { Set < E > set = new IdentityHashSet < E > ( ) ; set . add ( element ) ; elementToSet . put ( element , set ) ; disjointSets . add ( set ) ; } }
create a disjoint set for the element passed in . this method should be called for all elements before any of the other api methods are called ( i . e . construct a disjoint set for each element first and then union them together as appropriate ) .
