[Lemon-commits] [lemon_svn] alpar: r2209 - hugo/trunk/demo

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:50:56 CET 2006


Author: alpar
Date: Fri Sep 16 11:18:28 2005
New Revision: 2209

Added:
   hugo/trunk/demo/graph_orientation.lgf
Modified:
   hugo/trunk/demo/graph_orientation.cc

Log:
- silly mistake fixed
- output is graph_orientation.eps
- sample input file added


Modified: hugo/trunk/demo/graph_orientation.cc
==============================================================================
--- hugo/trunk/demo/graph_orientation.cc	(original)
+++ hugo/trunk/demo/graph_orientation.cc	Fri Sep 16 11:18:28 2005
@@ -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).

Added: hugo/trunk/demo/graph_orientation.lgf
==============================================================================
--- (empty file)
+++ hugo/trunk/demo/graph_orientation.lgf	Fri Sep 16 11:18:28 2005
@@ -0,0 +1,27 @@
+ at 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	
+ at 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	
+ at nodes 
+ at edges 
+ at attributes 
+ at end



More information about the Lemon-commits mailing list