test/digraph_test.cc
changeset 737 9d6c3e8b2421
parent 736 2e20aad15754
child 740 819ca5b50de0
equal deleted inserted replaced
12:af580d9a63ed 13:28e4356a95e5
   376 }
   376 }
   377 
   377 
   378 void checkFullDigraph(int num) {
   378 void checkFullDigraph(int num) {
   379   typedef FullDigraph Digraph;
   379   typedef FullDigraph Digraph;
   380   DIGRAPH_TYPEDEFS(Digraph);
   380   DIGRAPH_TYPEDEFS(Digraph);
       
   381 
   381   Digraph G(num);
   382   Digraph G(num);
       
   383   check(G.nodeNum() == num && G.arcNum() == num * num, "Wrong size");
       
   384 
       
   385   G.resize(num);
       
   386   check(G.nodeNum() == num && G.arcNum() == num * num, "Wrong size");
   382 
   387 
   383   checkGraphNodeList(G, num);
   388   checkGraphNodeList(G, num);
   384   checkGraphArcList(G, num * num);
   389   checkGraphArcList(G, num * num);
   385 
   390 
   386   for (NodeIt n(G); n != INVALID; ++n) {
   391   for (NodeIt n(G); n != INVALID; ++n) {