demo/graph_orientation.cc
changeset 2417 113d381c9160
parent 2310 96cca167430a
child 2510 bb523a4758f7
equal deleted inserted replaced
9:087ed498085e 10:d17c777ea23a
     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
   101   
   101   
   102   //Show the graph
   102   //Show the graph
   103 
   103 
   104   graphToEps(g,"graph_orientation.eps").scaleToA4().
   104   graphToEps(g,"graph_orientation.eps").scaleToA4().
   105     title("Sample .eps figure (fits to A4)").
   105     title("Sample .eps figure (fits to A4)").
   106     copyright("(C) 2006 LEMON Project").
   106     copyright("(C) 2003-2007 LEMON Project").
   107     absoluteNodeSizes().absoluteEdgeWidths().
   107     absoluteNodeSizes().absoluteEdgeWidths().
   108     nodeScale(15).
   108     nodeScale(15).
   109     coords(coords).
   109     coords(coords).
   110     negateY().
   110     negateY().
   111     edgeColors(composeMap(Palette(),rev)).
   111     edgeColors(composeMap(Palette(),rev)).