Changeset 1901:723b2b81d900 in lemon-0.x for demo
- Timestamp:
- 01/24/06 17:07:38 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2476
- Location:
- demo
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
demo/coloring.lgf
r1683 r1901 1 1 @nodeset 2 coords id2 coords label 3 3 (162, 142) 10 4 4 (169, -35) 9 … … 13 13 (-282, -149) 0 14 14 @undiredgeset 15 id15 label 16 16 9 10 17 17 17 1 9 15 -
demo/dir_components.lgf
r1802 r1901 1 1 @nodeset 2 coordinates_x coordinates_y id2 coordinates_x coordinates_y label 3 3 218.178 27.2723 19 4 4 157.79 -130.517 18 … … 21 21 -389.604 -136.361 1 22 22 @edgeset 23 id23 label 24 24 17 19 23 25 25 19 18 24 -
demo/graph_orientation.cc
r1875 r1901 50 50 51 51 ListGraph::NodeMap<int> f(g); //in-deg requirement; 52 ListGraph::NodeMap<int> id(g);52 ListGraph::NodeMap<int> label(g); 53 53 ListGraph::NodeMap<xy<double> > coords(g); 54 54 … … 56 56 GraphReader<ListGraph> reader(argv[1],g); 57 57 reader.readNodeMap("f",f); 58 reader.readNodeMap(" id",id);58 reader.readNodeMap("label",label); 59 59 reader.readNodeMap("coordinates_x",xMap(coords)); 60 60 reader.readNodeMap("coordinates_y",yMap(coords)); … … 81 81 Node act; 82 82 while((act=IterableBoolNodeMap<ListGraph>::TrueIt(active))!=INVALID) { 83 std::cout << "Process node " << id[act]83 std::cout << "Process node " << label[act] 84 84 << " (def=" << def[act] 85 85 << " lev=" << level[act] << "): "; … … 88 88 if(e!=INVALID) { 89 89 std::cout << " REVERT EDGE " << g.id(e) 90 << " (" << id[g.source(e)] << "---"91 << id[g.target(e)] << ")"90 << " (" << label[g.source(e)] << "---" 91 << label[g.target(e)] << ")" 92 92 << std::endl; 93 93 if(--def[act]==0) active[act]=false; -
demo/graph_orientation.lgf
r1687 r1901 1 1 @nodeset 2 coordinates_x coordinates_y f id2 coordinates_x coordinates_y f label 3 3 -198 -73 2 7 4 4 120 30 4 6 … … 9 9 -131 83 3 1 10 10 @edgeset 11 id11 label 12 12 7 6 3 13 13 1 6 2 -
demo/partitions.lgf
r1802 r1901 1 1 @nodeset 2 coordinates_x coordinates_y id2 coordinates_x coordinates_y label 3 3 513.857 -446.322 23 4 4 393.468 566.711 22 … … 25 25 -274 -131 1 26 26 @undiredgeset 27 id27 label 28 28 12 23 15 29 29 13 23 14 -
demo/route.lgf
r1530 r1901 1 1 @nodeset 2 idcoordinates_x coordinates_y2 label coordinates_x coordinates_y 3 3 9 447.907 578.328 4 4 8 79.2573 909.464 … … 12 12 0 189.239 92.5316 13 13 @edgeset 14 length id14 length label 15 15 2 3 901.074 0 16 16 8 5 270.85 1 -
demo/sample.lgf
r1541 r1901 1 1 @nodeset 2 idcoordinates_x coordinates_y2 label coordinates_x coordinates_y 3 3 5 796.398 208.035 4 4 4 573.002 63.002 … … 8 8 0 102.239 257.532 9 9 @edgeset 10 idcapacity10 label capacity 11 11 4 5 6 8 12 12 3 5 5 8 -
demo/sub_gad_input.lgf
r1577 r1901 1 1 @nodeset 2 id 2 label 3 3 6 4 4 5 … … 9 9 0 10 10 @edgeset 11 idlength11 label length 12 12 5 6 9 4 13 13 4 6 8 2 -
demo/undir_components.lgf
r1802 r1901 1 1 @nodeset 2 coordinates_x coordinates_y id2 coordinates_x coordinates_y label 3 3 574.035 177.301 44 4 4 694.579 115.483 43 … … 45 45 -567.302 43.6423 33 46 46 @undiredgeset 47 id47 label 48 48 41 42 44 49 49 40 42 43
Note: See TracChangeset
for help on using the changeset viewer.