demo/graph_to_eps_demo.cc
changeset 213 56579d12575b
parent 209 765619b7cbb2
child 220 a5d8c039f218
     1.1 --- a/demo/graph_to_eps_demo.cc	Mon Jul 14 09:15:23 2008 +0200
     1.2 +++ b/demo/graph_to_eps_demo.cc	Mon Jul 14 09:37:51 2008 +0100
     1.3 @@ -20,8 +20,8 @@
     1.4  /// \file
     1.5  /// \brief Demo of the graph drawing function \ref graphToEps()
     1.6  ///
     1.7 -/// This demo program shows examples how to  use the function \ref
     1.8 -/// graphToEps(). It takes no input but simply creates  six
     1.9 +/// This demo program shows examples how to use the function \ref
    1.10 +/// graphToEps(). It takes no input but simply creates seven
    1.11  /// <tt>.eps</tt> files demonstrating the capability of \ref
    1.12  /// graphToEps(), and showing how to draw directed graphs,
    1.13  /// how to handle parallel egdes, how to change the properties (like
    1.14 @@ -81,7 +81,7 @@
    1.15  
    1.16    IdMap<ListDigraph,Node> id(g);
    1.17  
    1.18 -  // Create five .eps files showing the digraph with different options
    1.19 +  // Create .eps files showing the digraph with different options
    1.20    cout << "Create 'graph_to_eps_demo_out_1_pure.eps'" << endl;
    1.21    graphToEps(g,"graph_to_eps_demo_out_1_pure.eps").
    1.22      coords(coords).
    1.23 @@ -118,6 +118,7 @@
    1.24      drawArrows().arrowWidth(2).arrowLength(2).
    1.25      run();
    1.26  
    1.27 +  // Add more arcs to the digraph
    1.28    a=g.addArc(n1,n4); acolors[a]=2; widths[a]=1;
    1.29    a=g.addArc(n4,n1); acolors[a]=1; widths[a]=2;
    1.30  
    1.31 @@ -129,9 +130,8 @@
    1.32    a=g.addArc(n1,n2); acolors[a]=6; widths[a]=1;
    1.33    a=g.addArc(n1,n2); acolors[a]=7; widths[a]=1;
    1.34  
    1.35 -  cout << "Create 'graph_to_eps_demo_out_par.eps'" << endl;
    1.36 -  graphToEps(g,"graph_to_eps_demo_out_par.eps").
    1.37 -    //scale(10).
    1.38 +  cout << "Create 'graph_to_eps_demo_out_4_par.eps'" << endl;
    1.39 +  graphToEps(g,"graph_to_eps_demo_out_4_par.eps").
    1.40      title("Sample .eps figure (parallel arcs)").
    1.41      copyright("(C) 2003-2008 LEMON Project").
    1.42      absoluteNodeSizes().absoluteArcWidths().
    1.43 @@ -145,8 +145,8 @@
    1.44      enableParallel().parArcDist(1.5).
    1.45      run();
    1.46  
    1.47 -  cout << "Create 'graph_to_eps_demo_out_4_par_arr.eps'" << endl;
    1.48 -  graphToEps(g,"graph_to_eps_demo_out_4_par_arr.eps").
    1.49 +  cout << "Create 'graph_to_eps_demo_out_5_par_arr.eps'" << endl;
    1.50 +  graphToEps(g,"graph_to_eps_demo_out_5_par_arr.eps").
    1.51      title("Sample .eps figure (parallel arcs and arrowheads)").
    1.52      copyright("(C) 2003-2008 LEMON Project").
    1.53      absoluteNodeSizes().absoluteArcWidths().
    1.54 @@ -161,8 +161,8 @@
    1.55      drawArrows().arrowWidth(1).arrowLength(1).
    1.56      run();
    1.57  
    1.58 -  cout << "Create 'graph_to_eps_demo_out_5_par_arr_a4.eps'" << endl;
    1.59 -  graphToEps(g,"graph_to_eps_demo_out_5_par_arr_a4.eps").
    1.60 +  cout << "Create 'graph_to_eps_demo_out_6_par_arr_a4.eps'" << endl;
    1.61 +  graphToEps(g,"graph_to_eps_demo_out_6_par_arr_a4.eps").
    1.62      title("Sample .eps figure (fits to A4)").
    1.63      copyright("(C) 2003-2008 LEMON Project").
    1.64      scaleToA4().
    1.65 @@ -190,8 +190,8 @@
    1.66      hcolors[n]=i;
    1.67    }
    1.68  
    1.69 -  cout << "Create 'graph_to_eps_demo_out_6_colors.eps'" << endl;
    1.70 -  graphToEps(h,"graph_to_eps_demo_out_6_colors.eps").
    1.71 +  cout << "Create 'graph_to_eps_demo_out_7_colors.eps'" << endl;
    1.72 +  graphToEps(h,"graph_to_eps_demo_out_7_colors.eps").
    1.73      scale(60).
    1.74      title("Sample .eps figure (Palette demo)").
    1.75      copyright("(C) 2003-2008 LEMON Project").