Changeset 1086:caa13d291528 in lemon-0.x for src/demo
- Timestamp:
- 01/18/05 13:02:27 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1482
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/demo/graph_to_eps_demo.cc
r1073 r1086 68 68 ListGraph::NodeMap<double> sizes(g); 69 69 ListGraph::NodeMap<int> colors(g); 70 ListGraph::NodeMap<int> shapes(g); 70 71 ListGraph::EdgeMap<int> ecolors(g); 71 72 ListGraph::EdgeMap<int> widths(g); 72 73 73 coords[n1]=Xy(50,50); sizes[n1]=1; colors[n1]=1; 74 coords[n2]=Xy(50,70); sizes[n2]=2; colors[n2]=2; 75 coords[n3]=Xy(70,70); sizes[n3]=1; colors[n3]=3; 76 coords[n4]=Xy(70,50); sizes[n4]=2; colors[n4]=4; 77 coords[n5]=Xy(85,60); sizes[n5]=3; colors[n5]=5; 74 coords[n1]=Xy(50,50); sizes[n1]=1; colors[n1]=1; shapes[n1]=0; 75 coords[n2]=Xy(50,70); sizes[n2]=2; colors[n2]=2; shapes[n2]=0; 76 coords[n3]=Xy(70,70); sizes[n3]=1; colors[n3]=3; shapes[n3]=0; 77 coords[n4]=Xy(70,50); sizes[n4]=2; colors[n4]=4; shapes[n4]=1; 78 coords[n5]=Xy(85,60); sizes[n5]=3; colors[n5]=5; shapes[n5]=0; 78 79 79 80 Edge e; … … 91 92 graphToEps(g,"graph_to_eps_demo_out.eps").scale(10).coords(coords). 92 93 nodeScale(2).nodeSizes(sizes). 94 nodeShapes(shapes). 93 95 nodeColors(composeMap(colorSet,colors)). 94 96 edgeColors(composeMap(colorSet,ecolors)). … … 98 100 graphToEps(g,"graph_to_eps_demo_out_arr.eps").scale(10).coords(coords). 99 101 nodeScale(2).nodeSizes(sizes). 102 nodeShapes(shapes). 100 103 nodeColors(composeMap(colorSet,colors)). 101 104 edgeColors(composeMap(colorSet,ecolors)). … … 117 120 graphToEps(g,"graph_to_eps_demo_out_par.eps").scale(10).coords(coords). 118 121 nodeScale(2).nodeSizes(sizes). 122 nodeShapes(shapes). 119 123 nodeColors(composeMap(colorSet,colors)). 120 124 edgeColors(composeMap(colorSet,ecolors)). … … 125 129 graphToEps(g,"graph_to_eps_demo_out_par_arr.eps").scale(10).coords(coords). 126 130 nodeScale(2).nodeSizes(sizes). 131 nodeShapes(shapes). 127 132 nodeColors(composeMap(colorSet,colors)). 128 133 edgeColors(composeMap(colorSet,ecolors)). … … 130 135 nodeTexts(id).nodeTextSize(3). 131 136 enableParallel().parEdgeDist(1). 137 // hideNodes(). 132 138 drawArrows().arrowWidth(1).arrowLength(1); 133 139 }
Note: See TracChangeset
for help on using the changeset viewer.