test/euler_test.cc
changeset 804 6039b32a2351
parent 584 2ebfdb89ec66
child 793 8d2e55fac752
child 807 3e711ee55d31
equal deleted inserted replaced
2:8b84a500e763 4: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);