demo/graph_orientation.cc
changeset 1864 1788205e36af
parent 1678 b7b7125a5fe8
child 1875 98698b69a902
equal deleted inserted replaced
0:d30993cadf75 1:c895c9e8cfa8
    91 		<< id[g.target(e)] << ")"
    91 		<< id[g.target(e)] << ")"
    92 		<< std::endl;
    92 		<< std::endl;
    93       if(--def[act]==0) active[act]=false;
    93       if(--def[act]==0) active[act]=false;
    94       if(++def[g.target(e)]>0) active[g.target(e)]=true;
    94       if(++def[g.target(e)]>0) active[g.target(e)]=true;
    95       g.reverseEdge(e);
    95       g.reverseEdge(e);
    96       rev[e]!=rev[e];
    96       rev[e]=!rev[e];
    97     }
    97     }
    98     else {
    98     else {
    99       std::cout << " LIFT" << std::endl;
    99       std::cout << " LIFT" << std::endl;
   100       if(++level[act]>nodeNum) {
   100       if(++level[act]>nodeNum) {
   101 	std::cout << "NINCS ILYEN\n";
   101 	std::cout << "NINCS ILYEN\n";
   104     }
   104     }
   105   }
   105   }
   106   
   106   
   107   //Show the graph
   107   //Show the graph
   108 
   108 
   109   graphToEps(g,"indeg_graph_rev_out.eps").scaleToA4().
   109   graphToEps(g,"graph_orientation.eps").scaleToA4().
   110     title("Sample .eps figure (fits to A4)").
   110     title("Sample .eps figure (fits to A4)").
   111     copyright("(C) 2005 LEMON Project").
   111     copyright("(C) 2005 LEMON Project").
   112     nodeScale(15).
   112     nodeScale(15).
   113     coords(coords).
   113     coords(coords).
   114     negateY().
   114     negateY().