demo/coloring.cc
changeset 2542 faaa54ec4520
parent 2359 97a5cd10ca16
child 2553 bfced05fa852
equal deleted inserted replaced
16:c8e582cbb460 17:c16c03477fc0
     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
    99 
    99 
   100   Palette palette;
   100   Palette palette;
   101 
   101 
   102   graphToEps(graph, "coloring.eps").
   102   graphToEps(graph, "coloring.eps").
   103     title("Six Colored Planar Graph").
   103     title("Six Colored Planar Graph").
   104     copyright("(C) 2006 LEMON Project").
   104     copyright("(C) 2003-2007 LEMON Project").
   105     coords(coords).nodeColors(composeMap(palette, color)).
   105     coords(coords).nodeColors(composeMap(palette, color)).
   106     nodeScale(5.0).scaleToA4().run();
   106     nodeScale(5.0).scaleToA4().run();
   107 
   107 
   108   return 0;
   108   return 0;
   109 }
   109 }