Changeset 1091:c756973cd53c in lemon-0.x for src/demo
- Timestamp:
- 01/20/05 15:16:40 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1488
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/demo/graph_to_eps_demo.cc
r1088 r1091 96 96 edgeColors(composeMap(colorSet,ecolors)). 97 97 edgeWidthScale(.4).edgeWidths(widths). 98 nodeTexts(id).nodeTextSize(3); 98 nodeTexts(id).nodeTextSize(3). 99 run(); 99 100 100 graphToEps(g,"graph_to_eps_demo_out_arr.eps").scale(10).coords(coords). 101 graphToEps(g,"graph_to_eps_demo_out_arr.eps").scale(10). 102 nodeColors(composeMap(colorSet,colors)). 103 coords(coords). 101 104 nodeScale(2).nodeSizes(sizes). 102 105 nodeShapes(shapes). 103 nodeColors(composeMap(colorSet,colors)).104 106 edgeColors(composeMap(colorSet,ecolors)). 105 107 edgeWidthScale(.4).edgeWidths(widths). 106 108 nodeTexts(id).nodeTextSize(3). 107 drawArrows().arrowWidth(1).arrowLength(1); 109 drawArrows().arrowWidth(1).arrowLength(1). 110 run(); 108 111 109 112 e=g.addEdge(n1,n4); ecolors[e]=2; widths[e]=1; … … 118 121 e=g.addEdge(n1,n2); ecolors[e]=7; widths[e]=1; 119 122 120 graphToEps(g,"graph_to_eps_demo_out_par.eps").scale(10).coords(coords). 123 graphToEps(g,"graph_to_eps_demo_out_par.eps").scale(10). 124 nodeShapes(shapes). 125 coords(coords). 121 126 nodeScale(2).nodeSizes(sizes). 122 nodeShapes(shapes).123 127 nodeColors(composeMap(colorSet,colors)). 124 128 edgeColors(composeMap(colorSet,ecolors)). 125 129 edgeWidthScale(.4).edgeWidths(widths). 126 130 nodeTexts(id).nodeTextSize(3). 127 enableParallel().parEdgeDist(1.5); 128 129 graphToEps(g,"graph_to_eps_demo_out_par_arr.eps").scale(10).coords(coords). 131 enableParallel().parEdgeDist(1.5). 132 run(); 133 134 graphToEps(g,"graph_to_eps_demo_out_par_arr.eps").scale(10). 130 135 nodeScale(2).nodeSizes(sizes). 136 coords(coords). 131 137 nodeShapes(shapes). 132 138 nodeColors(composeMap(colorSet,colors)). … … 136 142 enableParallel().parEdgeDist(1). 137 143 // hideNodes(). 138 drawArrows().arrowWidth(1).arrowLength(1); 144 drawArrows().arrowWidth(1).arrowLength(1). 145 run();; 139 146 }
Note: See TracChangeset
for help on using the changeset viewer.