tentative checkpoint
[sbp.git] / src / edu / berkeley / sbp / Forest.java
index 1b92a76..bc31117 100644 (file)
@@ -160,6 +160,9 @@ public abstract class Forest<T> /*extends PrintableTree<Forest.MyBody<T>>*/
      */
     static class Ref<T> extends Forest<T> {
         public HashSet<GSS.Phase.Node> parents = new HashSet<GSS.Phase.Node>();
+        public boolean contains(Forest f) {
+            return hp.contains(f);
+        }
         public boolean ambiguous() {
             if (hp.size()==0) return false;
             if (hp.size()==1) return hp.iterator().next().ambiguous();