demo/graph_to_eps_demo.cc
changeset 784 1a7fe3bef514
parent 440 88ed40ad0d4f
     1.1 --- a/demo/graph_to_eps_demo.cc	Fri Oct 16 10:21:37 2009 +0200
     1.2 +++ b/demo/graph_to_eps_demo.cc	Thu Nov 05 15:50:01 2009 +0100
     1.3 @@ -2,7 +2,7 @@
     1.4   *
     1.5   * This file is a part of LEMON, a generic C++ optimization library.
     1.6   *
     1.7 - * Copyright (C) 2003-2008
     1.8 + * Copyright (C) 2003-2009
     1.9   * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    1.10   * (Egervary Research Group on Combinatorial Optimization, EGRES).
    1.11   *
    1.12 @@ -85,14 +85,14 @@
    1.13    graphToEps(g,"graph_to_eps_demo_out_1_pure.eps").
    1.14      coords(coords).
    1.15      title("Sample .eps figure").
    1.16 -    copyright("(C) 2003-2008 LEMON Project").
    1.17 +    copyright("(C) 2003-2009 LEMON Project").
    1.18      run();
    1.19  
    1.20    cout << "Create 'graph_to_eps_demo_out_2.eps'" << endl;
    1.21    graphToEps(g,"graph_to_eps_demo_out_2.eps").
    1.22      coords(coords).
    1.23      title("Sample .eps figure").
    1.24 -    copyright("(C) 2003-2008 LEMON Project").
    1.25 +    copyright("(C) 2003-2009 LEMON Project").
    1.26      absoluteNodeSizes().absoluteArcWidths().
    1.27      nodeScale(2).nodeSizes(sizes).
    1.28      nodeShapes(shapes).
    1.29 @@ -105,7 +105,7 @@
    1.30    cout << "Create 'graph_to_eps_demo_out_3_arr.eps'" << endl;
    1.31    graphToEps(g,"graph_to_eps_demo_out_3_arr.eps").
    1.32      title("Sample .eps figure (with arrowheads)").
    1.33 -    copyright("(C) 2003-2008 LEMON Project").
    1.34 +    copyright("(C) 2003-2009 LEMON Project").
    1.35      absoluteNodeSizes().absoluteArcWidths().
    1.36      nodeColors(composeMap(palette,colors)).
    1.37      coords(coords).
    1.38 @@ -132,7 +132,7 @@
    1.39    cout << "Create 'graph_to_eps_demo_out_4_par.eps'" << endl;
    1.40    graphToEps(g,"graph_to_eps_demo_out_4_par.eps").
    1.41      title("Sample .eps figure (parallel arcs)").
    1.42 -    copyright("(C) 2003-2008 LEMON Project").
    1.43 +    copyright("(C) 2003-2009 LEMON Project").
    1.44      absoluteNodeSizes().absoluteArcWidths().
    1.45      nodeShapes(shapes).
    1.46      coords(coords).
    1.47 @@ -147,7 +147,7 @@
    1.48    cout << "Create 'graph_to_eps_demo_out_5_par_arr.eps'" << endl;
    1.49    graphToEps(g,"graph_to_eps_demo_out_5_par_arr.eps").
    1.50      title("Sample .eps figure (parallel arcs and arrowheads)").
    1.51 -    copyright("(C) 2003-2008 LEMON Project").
    1.52 +    copyright("(C) 2003-2009 LEMON Project").
    1.53      absoluteNodeSizes().absoluteArcWidths().
    1.54      nodeScale(2).nodeSizes(sizes).
    1.55      coords(coords).
    1.56 @@ -163,7 +163,7 @@
    1.57    cout << "Create 'graph_to_eps_demo_out_6_par_arr_a4.eps'" << endl;
    1.58    graphToEps(g,"graph_to_eps_demo_out_6_par_arr_a4.eps").
    1.59      title("Sample .eps figure (fits to A4)").
    1.60 -    copyright("(C) 2003-2008 LEMON Project").
    1.61 +    copyright("(C) 2003-2009 LEMON Project").
    1.62      scaleToA4().
    1.63      absoluteNodeSizes().absoluteArcWidths().
    1.64      nodeScale(2).nodeSizes(sizes).
    1.65 @@ -182,7 +182,7 @@
    1.66    ListDigraph::NodeMap<int> hcolors(h);
    1.67    ListDigraph::NodeMap<Point> hcoords(h);
    1.68  
    1.69 -  int cols=int(sqrt(double(palette.size())));
    1.70 +  int cols=int(std::sqrt(double(palette.size())));
    1.71    for(int i=0;i<int(paletteW.size());i++) {
    1.72      Node n=h.addNode();
    1.73      hcoords[n]=Point(1+i%cols,1+i/cols);
    1.74 @@ -193,7 +193,7 @@
    1.75    graphToEps(h,"graph_to_eps_demo_out_7_colors.eps").
    1.76      scale(60).
    1.77      title("Sample .eps figure (Palette demo)").
    1.78 -    copyright("(C) 2003-2008 LEMON Project").
    1.79 +    copyright("(C) 2003-2009 LEMON Project").
    1.80      coords(hcoords).
    1.81      absoluteNodeSizes().absoluteArcWidths().
    1.82      nodeScale(.45).