test/adaptors_test.cc
changeset 1297 c0c2f5c87aa6
parent 1153 4bb9e72e1a41
parent 1157 761fe0846f49
child 1259 8b2d4e5d96e4
equal deleted inserted replaced
2:897ce0d561b7 6:7d2efdd1a94b
    63   Digraph::Node n3 = digraph.addNode();
    63   Digraph::Node n3 = digraph.addNode();
    64 
    64 
    65   Digraph::Arc a1 = digraph.addArc(n1, n2);
    65   Digraph::Arc a1 = digraph.addArc(n1, n2);
    66   Digraph::Arc a2 = digraph.addArc(n1, n3);
    66   Digraph::Arc a2 = digraph.addArc(n1, n3);
    67   Digraph::Arc a3 = digraph.addArc(n2, n3);
    67   Digraph::Arc a3 = digraph.addArc(n2, n3);
       
    68   ignore_unused_variable_warning(a3);
    68 
    69 
    69   // Check the adaptor
    70   // Check the adaptor
    70   checkGraphNodeList(adaptor, 3);
    71   checkGraphNodeList(adaptor, 3);
    71   checkGraphArcList(adaptor, 3);
    72   checkGraphArcList(adaptor, 3);
    72   checkGraphConArcList(adaptor, 3);
    73   checkGraphConArcList(adaptor, 3);
    97   Adaptor::Arc a4 = adaptor.addArc(n4, n3);
    98   Adaptor::Arc a4 = adaptor.addArc(n4, n3);
    98   Adaptor::Arc a5 = adaptor.addArc(n2, n4);
    99   Adaptor::Arc a5 = adaptor.addArc(n2, n4);
    99   Adaptor::Arc a6 = adaptor.addArc(n2, n4);
   100   Adaptor::Arc a6 = adaptor.addArc(n2, n4);
   100   Adaptor::Arc a7 = adaptor.addArc(n1, n4);
   101   Adaptor::Arc a7 = adaptor.addArc(n1, n4);
   101   Adaptor::Arc a8 = adaptor.addArc(n1, n2);
   102   Adaptor::Arc a8 = adaptor.addArc(n1, n2);
       
   103   ignore_unused_variable_warning(a6,a7,a8);
   102 
   104 
   103   adaptor.erase(a1);
   105   adaptor.erase(a1);
   104   adaptor.erase(n3);
   106   adaptor.erase(n3);
   105 
   107 
   106   // Check the adaptor
   108   // Check the adaptor
   756   Digraph::Node n3 = digraph.addNode();
   758   Digraph::Node n3 = digraph.addNode();
   757 
   759 
   758   Digraph::Arc a1 = digraph.addArc(n1, n2);
   760   Digraph::Arc a1 = digraph.addArc(n1, n2);
   759   Digraph::Arc a2 = digraph.addArc(n1, n3);
   761   Digraph::Arc a2 = digraph.addArc(n1, n3);
   760   Digraph::Arc a3 = digraph.addArc(n2, n3);
   762   Digraph::Arc a3 = digraph.addArc(n2, n3);
       
   763   ignore_unused_variable_warning(a1,a2,a3);
   761 
   764 
   762   checkGraphNodeList(adaptor, 6);
   765   checkGraphNodeList(adaptor, 6);
   763   checkGraphArcList(adaptor, 6);
   766   checkGraphArcList(adaptor, 6);
   764   checkGraphConArcList(adaptor, 6);
   767   checkGraphConArcList(adaptor, 6);
   765 
   768