equal
deleted
inserted
replaced
1 /* -*- C++ -*- |
1 /* -*- C++ -*- |
2 * demo/coloring.cc - Part of LEMON, a generic C++ optimization library |
2 * demo/coloring.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. |
96 } |
96 } |
97 |
97 |
98 ColorSet colorSet; |
98 ColorSet colorSet; |
99 |
99 |
100 graphToEps(graph, "coloring.eps"). |
100 graphToEps(graph, "coloring.eps"). |
101 title("Six Colored Plan Graph").copyright("(C) 2005 LEMON Project"). |
101 title("Six Colored Plan Graph").copyright("(C) 2006 LEMON Project"). |
102 coords(coords).nodeColors(composeMap(colorSet, color)). |
102 coords(coords).nodeColors(composeMap(colorSet, color)). |
103 nodeScale(5.0).scaleToA4().run(); |
103 nodeScale(5.0).scaleToA4().run(); |
104 |
104 |
105 return 0; |
105 return 0; |
106 } |
106 } |