COIN-OR::LEMON - Graph Library

Changes in / [212:1ae84dea7d09:213:56579d12575b] in lemon-main


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • demo/graph_to_eps_demo.cc

    r209 r211  
    2121/// \brief Demo of the graph drawing function \ref graphToEps()
    2222///
    23 /// This demo program shows examples how to  use the function \ref
    24 /// graphToEps(). It takes no input but simply creates  six
     23/// This demo program shows examples how to use the function \ref
     24/// graphToEps(). It takes no input but simply creates seven
    2525/// <tt>.eps</tt> files demonstrating the capability of \ref
    2626/// graphToEps(), and showing how to draw directed graphs,
     
    8282  IdMap<ListDigraph,Node> id(g);
    8383
    84   // Create five .eps files showing the digraph with different options
     84  // Create .eps files showing the digraph with different options
    8585  cout << "Create 'graph_to_eps_demo_out_1_pure.eps'" << endl;
    8686  graphToEps(g,"graph_to_eps_demo_out_1_pure.eps").
     
    119119    run();
    120120
     121  // Add more arcs to the digraph
    121122  a=g.addArc(n1,n4); acolors[a]=2; widths[a]=1;
    122123  a=g.addArc(n4,n1); acolors[a]=1; widths[a]=2;
     
    130131  a=g.addArc(n1,n2); acolors[a]=7; widths[a]=1;
    131132
    132   cout << "Create 'graph_to_eps_demo_out_par.eps'" << endl;
    133   graphToEps(g,"graph_to_eps_demo_out_par.eps").
    134     //scale(10).
     133  cout << "Create 'graph_to_eps_demo_out_4_par.eps'" << endl;
     134  graphToEps(g,"graph_to_eps_demo_out_4_par.eps").
    135135    title("Sample .eps figure (parallel arcs)").
    136136    copyright("(C) 2003-2008 LEMON Project").
     
    146146    run();
    147147
    148   cout << "Create 'graph_to_eps_demo_out_4_par_arr.eps'" << endl;
    149   graphToEps(g,"graph_to_eps_demo_out_4_par_arr.eps").
     148  cout << "Create 'graph_to_eps_demo_out_5_par_arr.eps'" << endl;
     149  graphToEps(g,"graph_to_eps_demo_out_5_par_arr.eps").
    150150    title("Sample .eps figure (parallel arcs and arrowheads)").
    151151    copyright("(C) 2003-2008 LEMON Project").
     
    162162    run();
    163163
    164   cout << "Create 'graph_to_eps_demo_out_5_par_arr_a4.eps'" << endl;
    165   graphToEps(g,"graph_to_eps_demo_out_5_par_arr_a4.eps").
     164  cout << "Create 'graph_to_eps_demo_out_6_par_arr_a4.eps'" << endl;
     165  graphToEps(g,"graph_to_eps_demo_out_6_par_arr_a4.eps").
    166166    title("Sample .eps figure (fits to A4)").
    167167    copyright("(C) 2003-2008 LEMON Project").
     
    191191  }
    192192
    193   cout << "Create 'graph_to_eps_demo_out_6_colors.eps'" << endl;
    194   graphToEps(h,"graph_to_eps_demo_out_6_colors.eps").
     193  cout << "Create 'graph_to_eps_demo_out_7_colors.eps'" << endl;
     194  graphToEps(h,"graph_to_eps_demo_out_7_colors.eps").
    195195    scale(60).
    196196    title("Sample .eps figure (Palette demo)").
Note: See TracChangeset for help on using the changeset viewer.