test/adaptors_test.cc
branch1.2
changeset 1004 1e87c18cf65e
parent 964 7fdaa05a69a1
parent 982 3e711ee55d31
equal deleted inserted replaced
4:7d2efdd1a94b 6:3478e2fa3271
    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   ::lemon::ignore_unused_variable_warning(a3);
    69 
    69 
    70   // Check the adaptor
    70   // Check the adaptor
    71   checkGraphNodeList(adaptor, 3);
    71   checkGraphNodeList(adaptor, 3);
    72   checkGraphArcList(adaptor, 3);
    72   checkGraphArcList(adaptor, 3);
    73   checkGraphConArcList(adaptor, 3);
    73   checkGraphConArcList(adaptor, 3);
    98   Adaptor::Arc a4 = adaptor.addArc(n4, n3);
    98   Adaptor::Arc a4 = adaptor.addArc(n4, n3);
    99   Adaptor::Arc a5 = adaptor.addArc(n2, n4);
    99   Adaptor::Arc a5 = adaptor.addArc(n2, n4);
   100   Adaptor::Arc a6 = adaptor.addArc(n2, n4);
   100   Adaptor::Arc a6 = adaptor.addArc(n2, n4);
   101   Adaptor::Arc a7 = adaptor.addArc(n1, n4);
   101   Adaptor::Arc a7 = adaptor.addArc(n1, n4);
   102   Adaptor::Arc a8 = adaptor.addArc(n1, n2);
   102   Adaptor::Arc a8 = adaptor.addArc(n1, n2);
   103   ignore_unused_variable_warning(a6,a7,a8);
   103   ::lemon::ignore_unused_variable_warning(a6,a7,a8);
   104 
   104 
   105   adaptor.erase(a1);
   105   adaptor.erase(a1);
   106   adaptor.erase(n3);
   106   adaptor.erase(n3);
   107 
   107 
   108   // Check the adaptor
   108   // Check the adaptor
   758   Digraph::Node n3 = digraph.addNode();
   758   Digraph::Node n3 = digraph.addNode();
   759 
   759 
   760   Digraph::Arc a1 = digraph.addArc(n1, n2);
   760   Digraph::Arc a1 = digraph.addArc(n1, n2);
   761   Digraph::Arc a2 = digraph.addArc(n1, n3);
   761   Digraph::Arc a2 = digraph.addArc(n1, n3);
   762   Digraph::Arc a3 = digraph.addArc(n2, n3);
   762   Digraph::Arc a3 = digraph.addArc(n2, n3);
   763   ignore_unused_variable_warning(a1,a2,a3);
   763   ::lemon::ignore_unused_variable_warning(a1,a2,a3);
   764 
   764 
   765   checkGraphNodeList(adaptor, 6);
   765   checkGraphNodeList(adaptor, 6);
   766   checkGraphArcList(adaptor, 6);
   766   checkGraphArcList(adaptor, 6);
   767   checkGraphConArcList(adaptor, 6);
   767   checkGraphConArcList(adaptor, 6);
   768 
   768