equal
deleted
inserted
replaced
1 /* -*- C++ -*- |
1 /* -*- C++ -*- |
2 * demo/graph_orientation.cc - Part of LEMON, a generic C++ optimization library |
2 * demo/graph_orientation.cc - Part of LEMON, a generic C++ optimization library |
3 * |
3 * |
4 * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
4 * Copyright (C) 2006 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
5 * (Egervary Research Group on Combinatorial Optimization, EGRES). |
5 * (Egervary Research Group on Combinatorial Optimization, EGRES). |
6 * |
6 * |
7 * Permission to use, modify and distribute this software is granted |
7 * Permission to use, modify and distribute this software is granted |
8 * provided that this copyright notice appears in all copies. For |
8 * provided that this copyright notice appears in all copies. For |
9 * precise terms see the accompanying LICENSE file. |
9 * precise terms see the accompanying LICENSE file. |
106 |
106 |
107 //Show the graph |
107 //Show the graph |
108 |
108 |
109 graphToEps(g,"graph_orientation.eps").scaleToA4(). |
109 graphToEps(g,"graph_orientation.eps").scaleToA4(). |
110 title("Sample .eps figure (fits to A4)"). |
110 title("Sample .eps figure (fits to A4)"). |
111 copyright("(C) 2005 LEMON Project"). |
111 copyright("(C) 2006 LEMON Project"). |
112 nodeScale(15). |
112 nodeScale(15). |
113 coords(coords). |
113 coords(coords). |
114 negateY(). |
114 negateY(). |
115 edgeColors(composeMap(ColorSet(),rev)). |
115 edgeColors(composeMap(ColorSet(),rev)). |
116 edgeWidthScale(1). |
116 edgeWidthScale(1). |