demo/descriptor_map_demo.cc
changeset 2510 bb523a4758f7
parent 2386 81b47fc5c444
child 2553 bfced05fa852
equal deleted inserted replaced
9:06f6352f0c6d 10:e36df5bb36c7
     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
   120     
   120     
   121   CircleMap<Graph> coords(graph, dim2::Point<double>(0.0, 0.0), 10.0);
   121   CircleMap<Graph> coords(graph, dim2::Point<double>(0.0, 0.0), 10.0);
   122     
   122     
   123   graphToEps(graph,"descriptor_map_demo.eps").scaleToA4().
   123   graphToEps(graph,"descriptor_map_demo.eps").scaleToA4().
   124     title("Generated graph").
   124     title("Generated graph").
   125     copyright("(C) 2006 LEMON Project").
   125     copyright("(C) 2003-2007 LEMON Project").
   126     coords(coords).
   126     coords(coords).
   127     nodeScale(1.0).
   127     nodeScale(1.0).
   128     enableParallel().parEdgeDist(1).
   128     enableParallel().parEdgeDist(1).
   129     drawArrows().arrowWidth(1).arrowLength(1).
   129     drawArrows().arrowWidth(1).arrowLength(1).
   130     run();
   130     run();