demo/descriptor_map_demo.cc
changeset 1884 9c061834b33b
parent 1636 260ac104190f
child 1956 a055123339d5
equal deleted inserted replaced
3:264c53c800b0 4:2132250216f2
     1 /* -*- C++ -*-
     1 /* -*- C++ -*-
     2  * demo/descriptor_map_demo.cc - Part of LEMON, a generic C++ optimization
     2  * demo/descriptor_map_demo.cc - Part of LEMON, a generic C++ optimization
     3  * library
     3  * library
     4  *
     4  *
     5  * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     5  * Copyright (C) 2006 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     6  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     6  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     7  *
     7  *
     8  * Permission to use, modify and distribute this software is granted
     8  * Permission to use, modify and distribute this software is granted
     9  * provided that this copyright notice appears in all copies. For
     9  * provided that this copyright notice appears in all copies. For
    10  * precise terms see the accompanying LICENSE file.
    10  * precise terms see the accompanying LICENSE file.
   108     
   108     
   109   CircleMap<Graph> coords(graph, xy<double>(0.0, 0.0), 10.0);
   109   CircleMap<Graph> coords(graph, xy<double>(0.0, 0.0), 10.0);
   110     
   110     
   111   graphToEps(graph,"descriptor_map_demo.eps").scaleToA4().
   111   graphToEps(graph,"descriptor_map_demo.eps").scaleToA4().
   112     title("Generated graph").
   112     title("Generated graph").
   113     copyright("(C) 2005 LEMON Project").
   113     copyright("(C) 2006 LEMON Project").
   114     coords(coords).
   114     coords(coords).
   115     nodeScale(1.0).
   115     nodeScale(1.0).
   116     enableParallel().parEdgeDist(1).
   116     enableParallel().parEdgeDist(1).
   117     drawArrows().arrowWidth(1).arrowLength(1).
   117     drawArrows().arrowWidth(1).arrowLength(1).
   118     run();
   118     run();