1 /* -*- C++ -*- |
1 /* -*- C++ -*- |
2 * |
2 * |
3 * This file is a part of LEMON, a generic C++ optimization library |
3 * This file is a part of LEMON, a generic C++ optimization library |
4 * |
4 * |
5 * Copyright (C) 2003-2006 |
5 * Copyright (C) 2003-2007 |
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
7 * (Egervary Research Group on Combinatorial Optimization, EGRES). |
7 * (Egervary Research Group on Combinatorial Optimization, EGRES). |
8 * |
8 * |
9 * Permission to use, modify and distribute this software is granted |
9 * Permission to use, modify and distribute this software is granted |
10 * provided that this copyright notice appears in all copies. For |
10 * provided that this copyright notice appears in all copies. For |
84 cout << "Create 'graph_to_eps_demo_out_pure.eps'" << endl; |
84 cout << "Create 'graph_to_eps_demo_out_pure.eps'" << endl; |
85 graphToEps(g,"graph_to_eps_demo_out_pure.eps"). |
85 graphToEps(g,"graph_to_eps_demo_out_pure.eps"). |
86 //scale(10). |
86 //scale(10). |
87 coords(coords). |
87 coords(coords). |
88 title("Sample .eps figure"). |
88 title("Sample .eps figure"). |
89 copyright("(C) 2006 LEMON Project"). |
89 copyright("(C) 2003-2007 LEMON Project"). |
90 run(); |
90 run(); |
91 |
91 |
92 cout << "Create 'graph_to_eps_demo_out.eps'" << endl; |
92 cout << "Create 'graph_to_eps_demo_out.eps'" << endl; |
93 graphToEps(g,"graph_to_eps_demo_out.eps"). |
93 graphToEps(g,"graph_to_eps_demo_out.eps"). |
94 //scale(10). |
94 //scale(10). |
95 coords(coords). |
95 coords(coords). |
96 title("Sample .eps figure"). |
96 title("Sample .eps figure"). |
97 copyright("(C) 2006 LEMON Project"). |
97 copyright("(C) 2003-2007 LEMON Project"). |
98 absoluteNodeSizes().absoluteEdgeWidths(). |
98 absoluteNodeSizes().absoluteEdgeWidths(). |
99 nodeScale(2).nodeSizes(sizes). |
99 nodeScale(2).nodeSizes(sizes). |
100 nodeShapes(shapes). |
100 nodeShapes(shapes). |
101 nodeColors(composeMap(palette,colors)). |
101 nodeColors(composeMap(palette,colors)). |
102 edgeColors(composeMap(palette,ecolors)). |
102 edgeColors(composeMap(palette,ecolors)). |
107 |
107 |
108 cout << "Create 'graph_to_eps_demo_out_arr.eps'" << endl; |
108 cout << "Create 'graph_to_eps_demo_out_arr.eps'" << endl; |
109 graphToEps(g,"graph_to_eps_demo_out_arr.eps"). |
109 graphToEps(g,"graph_to_eps_demo_out_arr.eps"). |
110 //scale(10). |
110 //scale(10). |
111 title("Sample .eps figure (with arrowheads)"). |
111 title("Sample .eps figure (with arrowheads)"). |
112 copyright("(C) 2006 LEMON Project"). |
112 copyright("(C) 2003-2007 LEMON Project"). |
113 absoluteNodeSizes().absoluteEdgeWidths(). |
113 absoluteNodeSizes().absoluteEdgeWidths(). |
114 nodeColors(composeMap(palette,colors)). |
114 nodeColors(composeMap(palette,colors)). |
115 coords(coords). |
115 coords(coords). |
116 nodeScale(2).nodeSizes(sizes). |
116 nodeScale(2).nodeSizes(sizes). |
117 nodeShapes(shapes). |
117 nodeShapes(shapes). |
134 |
134 |
135 cout << "Create 'graph_to_eps_demo_out_par.eps'" << endl; |
135 cout << "Create 'graph_to_eps_demo_out_par.eps'" << endl; |
136 graphToEps(g,"graph_to_eps_demo_out_par.eps"). |
136 graphToEps(g,"graph_to_eps_demo_out_par.eps"). |
137 //scale(10). |
137 //scale(10). |
138 title("Sample .eps figure (parallel edges)"). |
138 title("Sample .eps figure (parallel edges)"). |
139 copyright("(C) 2006 LEMON Project"). |
139 copyright("(C) 2003-2007 LEMON Project"). |
140 absoluteNodeSizes().absoluteEdgeWidths(). |
140 absoluteNodeSizes().absoluteEdgeWidths(). |
141 nodeShapes(shapes). |
141 nodeShapes(shapes). |
142 coords(coords). |
142 coords(coords). |
143 nodeScale(2).nodeSizes(sizes). |
143 nodeScale(2).nodeSizes(sizes). |
144 nodeColors(composeMap(palette,colors)). |
144 nodeColors(composeMap(palette,colors)). |
150 |
150 |
151 cout << "Create 'graph_to_eps_demo_out_par_arr.eps'" << endl; |
151 cout << "Create 'graph_to_eps_demo_out_par_arr.eps'" << endl; |
152 graphToEps(g,"graph_to_eps_demo_out_par_arr.eps"). |
152 graphToEps(g,"graph_to_eps_demo_out_par_arr.eps"). |
153 //scale(10). |
153 //scale(10). |
154 title("Sample .eps figure (parallel edges and arrowheads)"). |
154 title("Sample .eps figure (parallel edges and arrowheads)"). |
155 copyright("(C) 2006 LEMON Project"). |
155 copyright("(C) 2003-2007 LEMON Project"). |
156 absoluteNodeSizes().absoluteEdgeWidths(). |
156 absoluteNodeSizes().absoluteEdgeWidths(). |
157 nodeScale(2).nodeSizes(sizes). |
157 nodeScale(2).nodeSizes(sizes). |
158 coords(coords). |
158 coords(coords). |
159 nodeShapes(shapes). |
159 nodeShapes(shapes). |
160 nodeColors(composeMap(palette,colors)). |
160 nodeColors(composeMap(palette,colors)). |
166 run(); |
166 run(); |
167 |
167 |
168 cout << "Create 'graph_to_eps_demo_out_a4.eps'" << endl; |
168 cout << "Create 'graph_to_eps_demo_out_a4.eps'" << endl; |
169 graphToEps(g,"graph_to_eps_demo_out_a4.eps").scaleToA4(). |
169 graphToEps(g,"graph_to_eps_demo_out_a4.eps").scaleToA4(). |
170 title("Sample .eps figure (fits to A4)"). |
170 title("Sample .eps figure (fits to A4)"). |
171 copyright("(C) 2006 LEMON Project"). |
171 copyright("(C) 2003-2007 LEMON Project"). |
172 absoluteNodeSizes().absoluteEdgeWidths(). |
172 absoluteNodeSizes().absoluteEdgeWidths(). |
173 nodeScale(2).nodeSizes(sizes). |
173 nodeScale(2).nodeSizes(sizes). |
174 coords(coords). |
174 coords(coords). |
175 nodeShapes(shapes). |
175 nodeShapes(shapes). |
176 nodeColors(composeMap(palette,colors)). |
176 nodeColors(composeMap(palette,colors)). |
194 |
194 |
195 cout << "Create 'graph_to_eps_demo_out_colors.eps'" << endl; |
195 cout << "Create 'graph_to_eps_demo_out_colors.eps'" << endl; |
196 graphToEps(h,"graph_to_eps_demo_out_colors.eps"). |
196 graphToEps(h,"graph_to_eps_demo_out_colors.eps"). |
197 //scale(60). |
197 //scale(60). |
198 title("Sample .eps figure (Palette demo)"). |
198 title("Sample .eps figure (Palette demo)"). |
199 copyright("(C) 2006 LEMON Project"). |
199 copyright("(C) 2003-2007 LEMON Project"). |
200 coords(hcoords). |
200 coords(hcoords). |
201 absoluteNodeSizes().absoluteEdgeWidths(). |
201 absoluteNodeSizes().absoluteEdgeWidths(). |
202 nodeScale(45). |
202 nodeScale(45). |
203 distantColorNodeTexts(). |
203 distantColorNodeTexts(). |
204 // distantBWNodeTexts(). |
204 // distantBWNodeTexts(). |