demo/graph_orientation.lgf
author deba
Mon, 19 Jun 2006 13:44:06 +0000
changeset 2101 439b7f21ccc4
parent 1687 7dc3abbb7636
permissions -rw-r--r--
Improvement:

The item sets are written in the order sorted by the labels.

It solves the problem if we read a graph from a file and
then write it back then the nodes will be reversed.
It can be switched off with the LemonWriter interface.
alpar@1687
     1
@nodeset 
deba@1901
     2
coordinates_x	coordinates_y	f	label	
alpar@1687
     3
-198	-73	2	7	
alpar@1687
     4
120	30	4	6	
alpar@1687
     5
-17	222	1	5	
alpar@1687
     6
328	147	1	4	
alpar@1687
     7
247	-179	0	3	
alpar@1687
     8
-28	-93	1	2	
alpar@1687
     9
-131	83	3	1	
alpar@1687
    10
@edgeset 
deba@1901
    11
		label	
alpar@1687
    12
7	6	3	
alpar@1687
    13
1	6	2	
alpar@1687
    14
2	6	1	
alpar@1687
    15
4	5	10	
alpar@1687
    16
6	5	6	
alpar@1687
    17
3	4	9	
alpar@1687
    18
6	4	7	
alpar@1687
    19
2	3	12	
alpar@1687
    20
6	3	8	
alpar@1687
    21
7	2	4	
alpar@1687
    22
5	1	11	
alpar@1687
    23
7	1	5	
alpar@1687
    24
@nodes 
alpar@1687
    25
@edges 
alpar@1687
    26
@attributes 
alpar@1687
    27
@end