demo/grid_ugraph_demo.cc
changeset 2510 bb523a4758f7
parent 2207 75a29ac69c19
child 2553 bfced05fa852
equal deleted inserted replaced
2:dd45c18b2520 3:89936839f9b5
     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
    85     path[bfs.predEdge(node)] = true;
    85     path[bfs.predEdge(node)] = true;
    86   }
    86   }
    87   
    87   
    88   graphToEps(filtered, "grid_ugraph_demo.eps").scaleToA4().
    88   graphToEps(filtered, "grid_ugraph_demo.eps").scaleToA4().
    89     title("Grid ugraph").
    89     title("Grid ugraph").
    90     copyright("(C) 2006 LEMON Project").
    90     copyright("(C) 2003-2007 LEMON Project").
    91     coords(scaleMap(indexMap(ugraph), 10)).
    91     coords(scaleMap(indexMap(ugraph), 10)).
    92     enableParallel().
    92     enableParallel().
    93     nodeScale(0.5).
    93     nodeScale(0.5).
    94     drawArrows().
    94     drawArrows().
    95     edgeColors(composeMap(Palette(), path)).
    95     edgeColors(composeMap(Palette(), path)).