COIN-OR::LEMON - Graph Library

Changes in / [207:574b963d0275:205:436fe75092b7] in lemon-1.1


Ignore:
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • demo/graph_to_eps_demo.cc

    r206 r132  
    1919/// \ingroup demos
    2020/// \file
    21 /// \brief Demo of the graph drawing function \ref graphToEps()
     21/// \brief Demo of the graph grawing function \ref graphToEps()
    2222///
    2323/// This demo program shows examples how to  use the function \ref
    2424/// graphToEps(). It takes no input but simply creates  six
    2525/// <tt>.eps</tt> files demonstrating the capability of \ref
    26 /// graphToEps(), and showing how to draw directed graphs,
     26/// graphToEps(), and showing how to draw directed/graphs,
    2727/// how to handle parallel egdes, how to change the properties (like
    2828/// color, shape, size, title etc.) of nodes and arcs individually
     
    3131/// \include graph_to_eps_demo.cc
    3232
     33#include <lemon/math.h>
     34
     35#include<lemon/graph_to_eps.h>
    3336#include<lemon/list_graph.h>
    3437#include<lemon/graph_utils.h>
    35 #include<lemon/graph_to_eps.h>
    36 #include<lemon/math.h>
    3738
    3839using namespace std;
     
    4445  Palette paletteW(true);
    4546
    46   // Create a small digraph
    4747  ListDigraph g;
    4848  typedef ListDigraph::Node Node;
     
    6161  ListDigraph::NodeMap<int> colors(g);
    6262  ListDigraph::NodeMap<int> shapes(g);
    63   ListDigraph::ArcMap<int> acolors(g);
     63  ListDigraph::ArcMap<int> ecolors(g);
    6464  ListDigraph::ArcMap<int> widths(g);
    6565 
     
    7070  coords[n5]=Point(85,60);  sizes[n5]=3; colors[n5]=5; shapes[n5]=2;
    7171 
    72   Arc a;
    73 
    74   a=g.addArc(n1,n2); acolors[a]=0; widths[a]=1;
    75   a=g.addArc(n2,n3); acolors[a]=0; widths[a]=1;
    76   a=g.addArc(n3,n5); acolors[a]=0; widths[a]=3;
    77   a=g.addArc(n5,n4); acolors[a]=0; widths[a]=1;
    78   a=g.addArc(n4,n1); acolors[a]=0; widths[a]=1;
    79   a=g.addArc(n2,n4); acolors[a]=1; widths[a]=2;
    80   a=g.addArc(n3,n4); acolors[a]=2; widths[a]=1;
     72  Arc e;
     73
     74  e=g.addArc(n1,n2); ecolors[e]=0; widths[e]=1;
     75  e=g.addArc(n2,n3); ecolors[e]=0; widths[e]=1;
     76  e=g.addArc(n3,n5); ecolors[e]=0; widths[e]=3;
     77  e=g.addArc(n5,n4); ecolors[e]=0; widths[e]=1;
     78  e=g.addArc(n4,n1); ecolors[e]=0; widths[e]=1;
     79  e=g.addArc(n2,n4); ecolors[e]=1; widths[e]=2;
     80  e=g.addArc(n3,n4); ecolors[e]=2; widths[e]=1;
    8181 
    8282  IdMap<ListDigraph,Node> id(g);
    8383
    84   // Create five .eps files showing the digraph with different options
    85   cout << "Create 'graph_to_eps_demo_out_1_pure.eps'" << endl;
    86   graphToEps(g,"graph_to_eps_demo_out_1_pure.eps").
     84  cout << "Create 'graph_to_eps_demo_out_pure.eps'" << endl;
     85  graphToEps(g,"graph_to_eps_demo_out_pure.eps").
     86    //scale(10).
    8787    coords(coords).
    8888    title("Sample .eps figure").
    89     copyright("(C) 2003-2008 LEMON Project").
    90     run();
    91 
    92   cout << "Create 'graph_to_eps_demo_out_2.eps'" << endl;
    93   graphToEps(g,"graph_to_eps_demo_out_2.eps").
     89    copyright("(C) 2003-2007 LEMON Project").
     90    run();
     91
     92  cout << "Create 'graph_to_eps_demo_out.eps'" << endl;
     93  graphToEps(g,"graph_to_eps_demo_out.eps").
     94    //scale(10).
    9495    coords(coords).
    9596    title("Sample .eps figure").
    96     copyright("(C) 2003-2008 LEMON Project").
    97     absoluteNodeSizes().absoluteArcWidths().
    98     nodeScale(2).nodeSizes(sizes).
    99     nodeShapes(shapes).
    100     nodeColors(composeMap(palette,colors)).
    101     arcColors(composeMap(palette,acolors)).
     97    copyright("(C) 2003-2007 LEMON Project").
     98    absoluteNodeSizes().absoluteArcWidths().
     99    nodeScale(2).nodeSizes(sizes).
     100    nodeShapes(shapes).
     101    nodeColors(composeMap(palette,colors)).
     102    arcColors(composeMap(palette,ecolors)).
    102103    arcWidthScale(.4).arcWidths(widths).
    103104    nodeTexts(id).nodeTextSize(3).
    104105    run();
    105106
    106   cout << "Create 'graph_to_eps_demo_out_3_arr.eps'" << endl;
    107   graphToEps(g,"graph_to_eps_demo_out_3_arr.eps").
     107
     108  cout << "Create 'graph_to_eps_demo_out_arr.eps'" << endl;
     109  graphToEps(g,"graph_to_eps_demo_out_arr.eps").
     110    //scale(10).
    108111    title("Sample .eps figure (with arrowheads)").
    109     copyright("(C) 2003-2008 LEMON Project").
    110     absoluteNodeSizes().absoluteArcWidths().
    111     nodeColors(composeMap(palette,colors)).
    112     coords(coords).
    113     nodeScale(2).nodeSizes(sizes).
    114     nodeShapes(shapes).
    115     arcColors(composeMap(palette,acolors)).
     112    copyright("(C) 2003-2007 LEMON Project").
     113    absoluteNodeSizes().absoluteArcWidths().
     114    nodeColors(composeMap(palette,colors)).
     115    coords(coords).
     116    nodeScale(2).nodeSizes(sizes).
     117    nodeShapes(shapes).
     118    arcColors(composeMap(palette,ecolors)).
    116119    arcWidthScale(.4).arcWidths(widths).
    117120    nodeTexts(id).nodeTextSize(3).
    118     drawArrows().arrowWidth(2).arrowLength(2).
    119     run();
    120 
    121   a=g.addArc(n1,n4); acolors[a]=2; widths[a]=1;
    122   a=g.addArc(n4,n1); acolors[a]=1; widths[a]=2;
    123 
    124   a=g.addArc(n1,n2); acolors[a]=1; widths[a]=1;
    125   a=g.addArc(n1,n2); acolors[a]=2; widths[a]=1;
    126   a=g.addArc(n1,n2); acolors[a]=3; widths[a]=1;
    127   a=g.addArc(n1,n2); acolors[a]=4; widths[a]=1;
    128   a=g.addArc(n1,n2); acolors[a]=5; widths[a]=1;
    129   a=g.addArc(n1,n2); acolors[a]=6; widths[a]=1;
    130   a=g.addArc(n1,n2); acolors[a]=7; widths[a]=1;
     121    drawArrows().arrowWidth(1).arrowLength(1).
     122    run();
     123
     124  e=g.addArc(n1,n4); ecolors[e]=2; widths[e]=1;
     125  e=g.addArc(n4,n1); ecolors[e]=1; widths[e]=2;
     126
     127  e=g.addArc(n1,n2); ecolors[e]=1; widths[e]=1;
     128  e=g.addArc(n1,n2); ecolors[e]=2; widths[e]=1;
     129  e=g.addArc(n1,n2); ecolors[e]=3; widths[e]=1;
     130  e=g.addArc(n1,n2); ecolors[e]=4; widths[e]=1;
     131  e=g.addArc(n1,n2); ecolors[e]=5; widths[e]=1;
     132  e=g.addArc(n1,n2); ecolors[e]=6; widths[e]=1;
     133  e=g.addArc(n1,n2); ecolors[e]=7; widths[e]=1;
    131134
    132135  cout << "Create 'graph_to_eps_demo_out_par.eps'" << endl;
     
    134137    //scale(10).
    135138    title("Sample .eps figure (parallel arcs)").
    136     copyright("(C) 2003-2008 LEMON Project").
    137     absoluteNodeSizes().absoluteArcWidths().
    138     nodeShapes(shapes).
    139     coords(coords).
    140     nodeScale(2).nodeSizes(sizes).
    141     nodeColors(composeMap(palette,colors)).
    142     arcColors(composeMap(palette,acolors)).
     139    copyright("(C) 2003-2007 LEMON Project").
     140    absoluteNodeSizes().absoluteArcWidths().
     141    nodeShapes(shapes).
     142    coords(coords).
     143    nodeScale(2).nodeSizes(sizes).
     144    nodeColors(composeMap(palette,colors)).
     145    arcColors(composeMap(palette,ecolors)).
    143146    arcWidthScale(.4).arcWidths(widths).
    144147    nodeTexts(id).nodeTextSize(3).
    145148    enableParallel().parArcDist(1.5).
    146149    run();
    147 
    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").
     150 
     151  cout << "Create 'graph_to_eps_demo_out_par_arr.eps'" << endl;
     152  graphToEps(g,"graph_to_eps_demo_out_par_arr.eps").
     153    //scale(10).
    150154    title("Sample .eps figure (parallel arcs and arrowheads)").
    151     copyright("(C) 2003-2008 LEMON Project").
    152     absoluteNodeSizes().absoluteArcWidths().
    153     nodeScale(2).nodeSizes(sizes).
    154     coords(coords).
    155     nodeShapes(shapes).
    156     nodeColors(composeMap(palette,colors)).
    157     arcColors(composeMap(palette,acolors)).
     155    copyright("(C) 2003-2007 LEMON Project").
     156    absoluteNodeSizes().absoluteArcWidths().
     157    nodeScale(2).nodeSizes(sizes).
     158    coords(coords).
     159    nodeShapes(shapes).
     160    nodeColors(composeMap(palette,colors)).
     161    arcColors(composeMap(palette,ecolors)).
    158162    arcWidthScale(.3).arcWidths(widths).
    159163    nodeTexts(id).nodeTextSize(3).
     
    162166    run();
    163167
    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").
     168  cout << "Create 'graph_to_eps_demo_out_a4.eps'" << endl;
     169  graphToEps(g,"graph_to_eps_demo_out_a4.eps").scaleToA4().
    166170    title("Sample .eps figure (fits to A4)").
    167     copyright("(C) 2003-2008 LEMON Project").
    168     scaleToA4().
    169     absoluteNodeSizes().absoluteArcWidths().
    170     nodeScale(2).nodeSizes(sizes).
    171     coords(coords).
    172     nodeShapes(shapes).
    173     nodeColors(composeMap(palette,colors)).
    174     arcColors(composeMap(palette,acolors)).
     171    copyright("(C) 2003-2007 LEMON Project").
     172    absoluteNodeSizes().absoluteArcWidths().
     173    nodeScale(2).nodeSizes(sizes).
     174    coords(coords).
     175    nodeShapes(shapes).
     176    nodeColors(composeMap(palette,colors)).
     177    arcColors(composeMap(palette,ecolors)).
    175178    arcWidthScale(.3).arcWidths(widths).
    176179    nodeTexts(id).nodeTextSize(3).
     
    179182    run();
    180183
    181   // Create an .eps file showing the colors of a default Palette
    182184  ListDigraph h;
    183185  ListDigraph::NodeMap<int> hcolors(h);
     
    187189  for(int i=0;i<int(paletteW.size());i++) {
    188190    Node n=h.addNode();
    189     hcoords[n]=Point(1+i%cols,1+i/cols);
     191    hcoords[n]=Point(i%cols,i/cols);
    190192    hcolors[n]=i;
    191193  }
    192194 
    193   cout << "Create 'graph_to_eps_demo_out_6_colors.eps'" << endl;
    194   graphToEps(h,"graph_to_eps_demo_out_6_colors.eps").
    195     scale(60).
     195  cout << "Create 'graph_to_eps_demo_out_colors.eps'" << endl;
     196  graphToEps(h,"graph_to_eps_demo_out_colors.eps").
     197    //scale(60).
    196198    title("Sample .eps figure (Palette demo)").
    197     copyright("(C) 2003-2008 LEMON Project").
     199    copyright("(C) 2003-2007 LEMON Project").
    198200    coords(hcoords).
    199201    absoluteNodeSizes().absoluteArcWidths().
    200202    nodeScale(.45).
    201203    distantColorNodeTexts().
     204    //    distantBWNodeTexts().
    202205    nodeTexts(hcolors).nodeTextSize(.6).
    203206    nodeColors(composeMap(paletteW,hcolors)).
    204207    run();
    205    
    206   return 0;
    207208}
  • lemon/color.h

    r206 r157  
    109109    ///Constructor
    110110
    111     ///Constructor.
    112     ///\param have_white Indicates whether white is among the
     111    ///Constructor 
     112    ///\param have_white indicates whether white is amongst the
    113113    ///provided initial colors (\c true) or not (\c false). If it is true,
    114114    ///white will be assigned to \c 0.
    115     ///\param num The number of the allocated colors. If it is \c -1,
     115    ///\param num the number of the allocated colors. If it is \c -1,
    116116    ///the default color configuration is set up (26 color plus optionaly the
    117117    ///white).  If \c num is less then 26/27 then the default color
     
    154154        colors.push_back(Color(.5,0,1));
    155155      } while(int(colors.size())<num);
     156      //    colors.push_back(Color(1,1,1));
    156157      if(num>=0) colors.resize(num);
    157158    }
     
    171172      colors[i%colors.size()]=c;
    172173    }
    173     ///Adds a new color to the end of the color list.
     174    ///Add a new color to the end of the color list.
    174175    void add(const Color &c)
    175176    {
     
    177178    }
    178179
    179     ///Sets the number of the existing colors.
     180    ///Sets the number of the exiting colors.
    180181    void resize(int s) { colors.resize(s);}
    181182    ///Returns the number of the existing colors.
  • lemon/graph_to_eps.h

    r206 r184  
    6464///Default traits class of \ref GraphToEps
    6565
    66 ///Default traits class of \ref GraphToEps.
     66///Default traits class of \ref GraphToEps
    6767///
    6868///\c G is the type of the underlying graph.
     
    141141
    142142  ///Constructor
    143   ///\param _g  Reference to the graph to be printed.
    144   ///\param _os Reference to the output stream.
    145   ///\param _os Reference to the output stream. By default it is <tt>std::cout</tt>.
     143  ///\param _g is a reference to the graph to be printed
     144  ///\param _os is a reference to the output stream.
     145  ///\param _os is a reference to the output stream.
    146146  ///\param _pros If it is \c true, then the \c ostream referenced by \c _os
    147147  ///will be explicitly deallocated by the destructor.
     148  ///By default it is <tt>std::cout</tt>
    148149  DefaultGraphToEpsTraits(const G &_g,std::ostream& _os=std::cout,
    149150                          bool _pros=false) :
     
    173174///Auxiliary class to implement the named parameters of \ref graphToEps()
    174175
    175 ///Auxiliary class to implement the named parameters of \ref graphToEps().
    176 ///
    177 ///For detailed examples see the \ref graph_to_eps_demo.cc demo file.
     176///Auxiliary class to implement the named parameters of \ref graphToEps()
    178177template<class T> class GraphToEps : public T
    179178{
     
    260259  ///Node shapes
    261260
    262   ///Node shapes.
     261  ///Node shapes
    263262  ///
    264263  enum NodeShapes {
     
    337336
    338337  ///Sets the map of the node coordinates.
    339   ///\param x must be a node map with \ref dim2::Point "dim2::Point<double>" or
     338  ///\param x must be a node map with dim2::Point<double> or
    340339  ///\ref dim2::Point "dim2::Point<int>" values.
    341340  template<class X> GraphToEps<CoordsTraits<X> > coords(const X &x) {
     
    349348  ///Sets the map of the node sizes
    350349
    351   ///Sets the map of the node sizes.
     350  ///Sets the map of the node sizes
    352351  ///\param x must be a node map with \c double (or convertible) values.
    353352  template<class X> GraphToEps<NodeSizesTraits<X> > nodeSizes(const X &x)
     
    378377  ///Sets the text printed on the nodes
    379378
    380   ///Sets the text printed on the nodes.
     379  ///Sets the text printed on the nodes
    381380  ///\param x must be a node map with type that can be pushed to a standard
    382   ///\c ostream.
     381  ///ostream.
    383382  template<class X> GraphToEps<NodeTextsTraits<X> > nodeTexts(const X &x)
    384383  {
     
    395394  ///With this command it is possible to insert a verbatim PostScript
    396395  ///block to the nodes.
    397   ///The PS current point will be moved to the center of the node before
     396  ///The PS current point will be moved to the centre of the node before
    398397  ///the PostScript block inserted.
    399398  ///
     
    402401  ///
    403402  ///\param x must be a node map with type that can be pushed to a standard
    404   ///\c ostream.
     403  ///ostream.
    405404  ///
    406405  ///\sa nodePsTextsPreamble()
     
    417416  ///Sets the map of the arc widths
    418417
    419   ///Sets the map of the arc widths.
     418  ///Sets the map of the arc widths
    420419  ///\param x must be an arc map with \c double (or convertible) values.
    421420  template<class X> GraphToEps<ArcWidthsTraits<X> > arcWidths(const X &x)
     
    431430  ///Sets the map of the node colors
    432431
    433   ///Sets the map of the node colors.
     432  ///Sets the map of the node colors
    434433  ///\param x must be a node map with \ref Color values.
    435434  ///
     
    447446  ///Sets the map of the node text colors
    448447
    449   ///Sets the map of the node text colors.
     448  ///Sets the map of the node text colors
    450449  ///\param x must be a node map with \ref Color values.
    451450  ///
     
    465464  ///Sets the map of the arc colors
    466465
    467   ///Sets the map of the arc colors.
     466  ///Sets the map of the arc colors
    468467  ///\param x must be an arc map with \ref Color values.
    469468  ///
     
    489488  /// \sa autoNodeScale()
    490489  GraphToEps<T> &nodeScale(double d=.01) {_nodeScale=d;return *this;}
    491   ///Turns on/off the automatic node size scaling.
    492 
    493   ///Turns on/off the automatic node size scaling.
     490  ///Turns on/off the automatic node width scaling.
     491
     492  ///Turns on/off the automatic node width scaling.
    494493  ///
    495494  ///\sa nodeScale()
     
    499498  }
    500499
    501   ///Turns on/off the absolutematic node size scaling.
    502 
    503   ///Turns on/off the absolutematic node size scaling.
     500  ///Turns on/off the absolutematic node width scaling.
     501
     502  ///Turns on/off the absolutematic node width scaling.
    504503  ///
    505504  ///\sa nodeScale()
     
    510509
    511510  ///Negates the Y coordinates.
     511
     512  ///Negates the Y coordinates.
     513  ///
    512514  GraphToEps<T> &negateY(bool b=true) {
    513515    _negY=b;return *this;
     
    556558  }
    557559  ///Sets a global scale factor for the whole picture
     560
     561  ///Sets a global scale factor for the whole picture
     562  ///
     563
    558564  GraphToEps<T> &scale(double d) {_scale=d;return *this;}
    559565  ///Sets the width of the border around the picture
     566
     567  ///Sets the width of the border around the picture
     568  ///
    560569  GraphToEps<T> &border(double b=10) {_xBorder=_yBorder=b;return *this;}
    561570  ///Sets the width of the border around the picture
     571
     572  ///Sets the width of the border around the picture
     573  ///
    562574  GraphToEps<T> &border(double x, double y) {
    563575    _xBorder=x;_yBorder=y;return *this;
    564576  }
    565577  ///Sets whether to draw arrows
     578
     579  ///Sets whether to draw arrows
     580  ///
    566581  GraphToEps<T> &drawArrows(bool b=true) {_drawArrows=b;return *this;}
    567582  ///Sets the length of the arrowheads
     583
     584  ///Sets the length of the arrowheads
     585  ///
    568586  GraphToEps<T> &arrowLength(double d=1.0) {_arrowLength*=d;return *this;}
    569587  ///Sets the width of the arrowheads
     588
     589  ///Sets the width of the arrowheads
     590  ///
    570591  GraphToEps<T> &arrowWidth(double d=.3) {_arrowWidth*=d;return *this;}
    571592 
    572593  ///Scales the drawing to fit to A4 page
     594
     595  ///Scales the drawing to fit to A4 page
     596  ///
    573597  GraphToEps<T> &scaleToA4() {_scaleToA4=true;return *this;}
    574598 
     599  ///Enables parallel arcs
     600
    575601  ///Enables parallel arcs
    576602  GraphToEps<T> &enableParallel(bool b=true) {_enableParallel=b;return *this;}
    577603 
    578   ///Sets the distance between parallel arcs
     604  ///Sets the distance
     605 
     606  ///Sets the distance
     607  ///
    579608  GraphToEps<T> &parArcDist(double d) {_parArcDist*=d;return *this;}
    580609 
    581610  ///Hides the arcs
     611 
     612  ///Hides the arcs
     613  ///
    582614  GraphToEps<T> &hideArcs(bool b=true) {_showArcs=!b;return *this;}
    583615  ///Hides the nodes
     616 
     617  ///Hides the nodes
     618  ///
    584619  GraphToEps<T> &hideNodes(bool b=true) {_showNodes=!b;return *this;}
    585620 
    586621  ///Sets the size of the node texts
     622 
     623  ///Sets the size of the node texts
     624  ///
    587625  GraphToEps<T> &nodeTextSize(double d) {_nodeTextSize=d;return *this;}
    588626
     
    590628
    591629  ///Sets the color of the node texts to be as different from the node color
    592   ///as it is possible.
     630  ///as it is possible
     631  ///
    593632  GraphToEps<T> &distantColorNodeTexts()
    594633  {_nodeTextColorType=DIST_COL;return *this;}
     
    596635
    597636  ///Sets the color of the node texts to be black or white according to
    598   ///which is more different from the node color.
     637  ///which is more
     638  ///different from the node color
     639  ///
    599640  GraphToEps<T> &distantBWNodeTexts()
    600641  {_nodeTextColorType=DIST_BW;return *this;}
     
    608649    _nodePsTextsPreamble=str ;return *this;
    609650  }
    610   ///Sets whether the graph is undirected
    611 
    612   ///Sets whether the graph is undirected.
     651  ///Sets whether the the graph is undirected
     652
     653  ///Sets whether the the graph is undirected.
    613654  ///
    614655  ///This setting is the default for undirected graphs.
     
    617658   GraphToEps<T> &undirected(bool b=true) {_undirected=b;return *this;}
    618659
    619   ///Sets whether the graph is directed
    620 
    621   ///Sets whether the graph is directed.
     660  ///Sets whether the the graph is directed
     661
     662  ///Sets whether the the graph is directed.
    622663  ///Use it to show the edges as a pair of directed ones.
    623664  ///
     
    676717    if(_title.size()>0) os << "%%Title: " << _title << '\n';
    677718     if(_copyright.size()>0) os << "%%Copyright: " << _copyright << '\n';
     719//        << "%%Copyright: XXXX\n"
    678720    os << "%%Creator: LEMON, graphToEps()\n";
    679721
     
    707749      for(ArcIt e(g);e!=INVALID;++e)
    708750        max_w=std::max(double(_arcWidths[e]),max_w);
    709       //\todo better 'epsilon' would be nice here.
     751      ///\todo better 'epsilon' would be nice here.
    710752      if(max_w>EPSILON) {
    711753        _arcWidthScale/=max_w;
     
    717759      for(NodeIt n(g);n!=INVALID;++n)
    718760        max_s=std::max(double(_nodeSizes[n]),max_s);
    719       //\todo better 'epsilon' would be nice here.
     761      ///\todo better 'epsilon' would be nice here.
    720762      if(max_s>EPSILON) {
    721763        _nodeScale/=max_s;
     
    10731115
    10741116  ///An alias for arcWidths()
     1117
     1118  ///An alias for arcWidths()
     1119  ///
    10751120  template<class X> GraphToEps<ArcWidthsTraits<X> > edgeWidths(const X &x)
    10761121  {
     
    10791124
    10801125  ///An alias for arcColors()
     1126
     1127  ///An alias for arcColors()
     1128  ///
    10811129  template<class X> GraphToEps<ArcColorsTraits<X> >
    10821130  edgeColors(const X &x)
     
    10861134
    10871135  ///An alias for arcWidthScale()
     1136
     1137  ///An alias for arcWidthScale()
     1138  ///
    10881139  GraphToEps<T> &edgeWidthScale(double d) {return arcWidthScale(d);}
    10891140
    10901141  ///An alias for autoArcWidthScale()
     1142
     1143  ///An alias for autoArcWidthScale()
     1144  ///
    10911145  GraphToEps<T> &autoEdgeWidthScale(bool b=true)
    10921146  {
     
    10951149 
    10961150  ///An alias for absoluteArcWidths()
     1151
     1152  ///An alias for absoluteArcWidths()
     1153  ///
    10971154  GraphToEps<T> &absoluteEdgeWidths(bool b=true)
    10981155  {
     
    11011158 
    11021159  ///An alias for parArcDist()
     1160
     1161  ///An alias for parArcDist()
     1162  ///
    11031163  GraphToEps<T> &parEdgeDist(double d) {return parArcDist(d);}
    11041164 
    11051165  ///An alias for hideArcs()
     1166 
     1167  ///An alias for hideArcs()
     1168  ///
    11061169  GraphToEps<T> &hideEdges(bool b=true) {return hideArcs(b);}
    11071170
     
    11231186///\ingroup eps_io
    11241187///Generates an EPS file from a graph.
    1125 ///\param g Reference to the graph to be printed.
    1126 ///\param os Reference to the output stream.
    1127 ///By default it is <tt>std::cout</tt>.
     1188///\param g is a reference to the graph to be printed
     1189///\param os is a reference to the output stream.
     1190///By default it is <tt>std::cout</tt>
    11281191///
    11291192///This function also has a lot of
     
    11361199///              .arcWidthScale(.4).run();
    11371200///\endcode
    1138 ///
    1139 ///For more detailed examples see the \ref graph_to_eps_demo.cc demo file.
    1140 ///
    11411201///\warning Don't forget to put the \ref GraphToEps::run() "run()"
    11421202///to the end of the parameter list.
Note: See TracChangeset for help on using the changeset viewer.