/* make a copy of potentials */
HashSet allPhi = new HashSet();
for (Iterator i = model.factorsIterator (); i.hasNext(); ){
Factor factor = (Factor) i.next ();
allPhi.add(factor.duplicate());
}
Set nodes = model.variablesSet ();
/* Eliminate each node in turn */