# HG changeset patch # User alpar # Date 1126862308 0 # Node ID 7dc3abbb7636ed87ece1bafa722c3e0bb4ef7f5b # Parent a5b8e0fde2be014084c2f9e27bbbc067e01de2f3 - silly mistake fixed - output is graph_orientation.eps - sample input file added diff -r a5b8e0fde2be -r 7dc3abbb7636 demo/graph_orientation.cc --- a/demo/graph_orientation.cc Fri Sep 16 09:01:20 2005 +0000 +++ b/demo/graph_orientation.cc Fri Sep 16 09:18:28 2005 +0000 @@ -93,7 +93,7 @@ if(--def[act]==0) active[act]=false; if(++def[g.target(e)]>0) active[g.target(e)]=true; g.reverseEdge(e); - rev[e]!=rev[e]; + rev[e]=!rev[e]; } else { std::cout << " LIFT" << std::endl; @@ -106,7 +106,7 @@ //Show the graph - graphToEps(g,"indeg_graph_rev_out.eps").scaleToA4(). + graphToEps(g,"graph_orientation.eps").scaleToA4(). title("Sample .eps figure (fits to A4)"). copyright("(C) 2005 LEMON Project"). nodeScale(15). diff -r a5b8e0fde2be -r 7dc3abbb7636 demo/graph_orientation.lgf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/demo/graph_orientation.lgf Fri Sep 16 09:18:28 2005 +0000 @@ -0,0 +1,27 @@ +@nodeset +coordinates_x coordinates_y f id +-198 -73 2 7 +120 30 4 6 +-17 222 1 5 +328 147 1 4 +247 -179 0 3 +-28 -93 1 2 +-131 83 3 1 +@edgeset + id +7 6 3 +1 6 2 +2 6 1 +4 5 10 +6 5 6 +3 4 9 +6 4 7 +2 3 12 +6 3 8 +7 2 4 +5 1 11 +7 1 5 +@nodes +@edges +@attributes +@end