Beispiel #1
0
 public DirectedGraphAdjacencyListPreOrderDFTraversalRecursiveIterator(
     GraphTraversalFixture fixture)
 {
     this.fixture       = fixture;
     traversalType      = "dft-string";
     TraversalAlgorithm = DirectedGraphAdjacencyList <char>
                          .PreOrderDepthFirstTraversalRecursiveIterator;
 }
Beispiel #2
0
 public DirectedGraphAdjacencyListBFTraversalIterator(
     GraphTraversalFixture fixture)
 {
     this.fixture       = fixture;
     traversalType      = "bft-string";
     TraversalAlgorithm = (INode <char> node) => DirectedGraphAdjacencyList <char>
                          .BreadthFirstTraversalIterativeIterator(
         node, new QueueSinglyLinkedList <INode <char> >());
 }
Beispiel #3
0
 public DirectedGraphAdjacencyListPreOrderDFTraversalIterativeIterator(
     GraphTraversalFixture fixture)
 {
     this.fixture       = fixture;
     traversalType      = "dft-string";
     TraversalAlgorithm = (INode <char> node) => DirectedGraphAdjacencyList <char>
                          .PreOrderDepthFirstTraversalIterativeIterator(
         node, new StackSinglyLinkedList <INode <char> >());
 }
Beispiel #4
0
 public GraphTests0(GraphTraversalFixture fixture)
 {
     this.fixture = fixture;
 }