test/euler_test.cc
changeset 1236 756022ac1674
parent 639 2ebfdb89ec66
child 1158 8d2e55fac752
child 1159 7fdaa05a69a1
child 1257 3e711ee55d31
equal deleted inserted replaced
2:8b84a500e763 5:1467e1fc88e3
    99   }
    99   }
   100   {
   100   {
   101     Digraph d;
   101     Digraph d;
   102     Graph g(d);
   102     Graph g(d);
   103     Digraph::Node n = d.addNode();
   103     Digraph::Node n = d.addNode();
   104 
   104     ignore_unused_variable_warning(n);
       
   105   
   105     checkDiEulerIt(d);
   106     checkDiEulerIt(d);
   106     checkDiEulerIt(g);
   107     checkDiEulerIt(g);
   107     checkEulerIt(g);
   108     checkEulerIt(g);
   108 
   109 
   109     check(eulerian(d), "This graph is Eulerian");
   110     check(eulerian(d), "This graph is Eulerian");
   187     Digraph::Node n1 = d.addNode();
   188     Digraph::Node n1 = d.addNode();
   188     Digraph::Node n2 = d.addNode();
   189     Digraph::Node n2 = d.addNode();
   189     Digraph::Node n3 = d.addNode();
   190     Digraph::Node n3 = d.addNode();
   190     Digraph::Node n4 = d.addNode();
   191     Digraph::Node n4 = d.addNode();
   191     Digraph::Node n5 = d.addNode();
   192     Digraph::Node n5 = d.addNode();
   192     
   193     ignore_unused_variable_warning(n0,n4,n5);
       
   194 
   193     d.addArc(n1, n2);
   195     d.addArc(n1, n2);
   194     d.addArc(n2, n3);
   196     d.addArc(n2, n3);
   195     d.addArc(n3, n1);
   197     d.addArc(n3, n1);
   196 
   198 
   197     checkDiEulerIt(d);
   199     checkDiEulerIt(d);