1.1 --- a/demo/graph_orientation.cc Fri Sep 16 09:01:20 2005 +0000
1.2 +++ b/demo/graph_orientation.cc Fri Sep 16 09:18:28 2005 +0000
1.3 @@ -93,7 +93,7 @@
1.4 if(--def[act]==0) active[act]=false;
1.5 if(++def[g.target(e)]>0) active[g.target(e)]=true;
1.6 g.reverseEdge(e);
1.7 - rev[e]!=rev[e];
1.8 + rev[e]=!rev[e];
1.9 }
1.10 else {
1.11 std::cout << " LIFT" << std::endl;
1.12 @@ -106,7 +106,7 @@
1.13
1.14 //Show the graph
1.15
1.16 - graphToEps(g,"indeg_graph_rev_out.eps").scaleToA4().
1.17 + graphToEps(g,"graph_orientation.eps").scaleToA4().
1.18 title("Sample .eps figure (fits to A4)").
1.19 copyright("(C) 2005 LEMON Project").
1.20 nodeScale(15).
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/demo/graph_orientation.lgf Fri Sep 16 09:18:28 2005 +0000
2.3 @@ -0,0 +1,27 @@
2.4 +@nodeset
2.5 +coordinates_x coordinates_y f id
2.6 +-198 -73 2 7
2.7 +120 30 4 6
2.8 +-17 222 1 5
2.9 +328 147 1 4
2.10 +247 -179 0 3
2.11 +-28 -93 1 2
2.12 +-131 83 3 1
2.13 +@edgeset
2.14 + id
2.15 +7 6 3
2.16 +1 6 2
2.17 +2 6 1
2.18 +4 5 10
2.19 +6 5 6
2.20 +3 4 9
2.21 +6 4 7
2.22 +2 3 12
2.23 +6 3 8
2.24 +7 2 4
2.25 +5 1 11
2.26 +7 1 5
2.27 +@nodes
2.28 +@edges
2.29 +@attributes
2.30 +@end