예제 #1
0
 public EdgeCollection(DirectedGraphImpl <T> graph, int iNode, bool fSuccessor)
 {
     if (iNode < 0)
     {
         throw new ArgumentException("Invalid node.");
     }
     this.graph      = graph;
     this.iNode      = iNode;
     this.fSuccessor = fSuccessor;
 }
예제 #2
0
 public NodeEnumerator(DirectedGraphImpl <T> graph)
 {
     this.graph = graph;
 }
예제 #3
0
 public NodeCollection(DirectedGraphImpl <T> graph)
 {
     this.graph = graph;
 }