demo/strongly_connected_orientation.cc
changeset 2163 bef3457be038
parent 2116 b6a68c15a6a3
child 2173 b4de9aed7709
equal deleted inserted replaced
2:1ad633b18952 3:e0fd81848476
   102     autoNodeScale().autoEdgeWidthScale().run();
   102     autoNodeScale().autoEdgeWidthScale().run();
   103 
   103 
   104   int num_scc = countStronglyConnectedComponents(dgraph);
   104   int num_scc = countStronglyConnectedComponents(dgraph);
   105   int num_becc = countBiEdgeConnectedComponents(ugraph);
   105   int num_becc = countBiEdgeConnectedComponents(ugraph);
   106 
   106 
   107   LEMON_ASSERT(num_scc == num_becc, "Wrong Orientation");
   107   if (num_scc != num_becc) {
       
   108     std::cerr << "Wrong Orientation" << std::endl;
       
   109   }
   108   
   110   
   109   return 0;
   111   return 0;
   110 }
   112 }