refactor predecessor/successor into Node class
[sbp.git] / src / edu / berkeley / sbp / Node.java
index 532a4a8..09718af 100644 (file)
@@ -14,6 +14,11 @@ class Node<OtherNode extends Node>
     implements IntegerMappable,
                GraphViz.ToGraphViz {
 
+    protected       FastSet<OtherNode> predecessors = new FastSet<OtherNode>();
+    protected       FastSet<OtherNode> successors = new FastSet<OtherNode>();
+    //private       HashSet<OtherNode> predecessors = new HashSet<OtherNode>();
+    //private       HashSet<OtherNode> successors = new HashSet<OtherNode>();
+
     // GraphViz //////////////////////////////////////////////////////////////////////////////
 
     public GraphViz.StateNode toGraphViz(GraphViz gv) {