Changeset 1091:c756973cd53c in lemon-0.x
- Timestamp:
- 01/20/05 15:16:40 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1488
- Location:
- src
- Files:
-
- 2 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 } -
src/lemon/graph_to_eps.h
r1089 r1091 422 422 423 423 public: 424 ~GraphToEps() 425 { 424 ~GraphToEps() { } 425 426 ///Draws the graph. 427 428 ///Like other functions using 429 ///\ref named-templ-func-param "named template parameters", 430 ///this function calles the algorithm itself, i.e. in this case 431 ///it draws the graph. 432 void run() { 426 433 if(dontPrint) return; 427 434 … … 668 675 ///By default it is <tt>std::cout</tt> 669 676 /// 670 ///This function also has a lot of \ref named-templ-param "named parameters", 677 ///This function also has a lot of 678 ///\ref named-templ-func-param "named parameters", 671 679 ///they are declared as the members of class \ref GraphToEps. The following 672 680 ///example shows how to use these parameters. … … 674 682 /// graphToEps(g).scale(10).coords(coords) 675 683 /// .nodeScale(2).nodeSizes(sizes) 676 /// .edgeWidthScale(.4) ;684 /// .edgeWidthScale(.4).run(); 677 685 ///\endcode 686 ///\warning Don't forget to put the \ref GraphToEps::run() "run()" 687 ///to the end of the parameter list. 678 688 ///\sa GraphToEps 679 689 ///\sa graphToEps(G &g, char *file_name)
Note: See TracChangeset
for help on using the changeset viewer.