COIN-OR::LEMON - Graph Library

Changeset 1909:2d806130e700 in lemon-0.x for lemon/graph_to_eps.h


Ignore:
Timestamp:
01/26/06 16:42:13 (14 years ago)
Author:
Mihaly Barasz
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2484
Message:

Undir -> U transition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/graph_to_eps.h

    r1907 r1909  
    235235  char *_nodePsTextsPreamble;
    236236 
    237   bool _undir;
     237  bool _u;
    238238  bool _pleaseRemoveOsStream;
    239239
     
    273273    _showNodeText(false), _nodeTexts(false), _nodeTextSize(1),
    274274    _showNodePsText(false), _nodePsTexts(false), _nodePsTextsPreamble(0),
    275     _undir(false),
     275    _u(false),
    276276    _pleaseRemoveOsStream(_pros), _scaleToA4(false),
    277277    _nodeTextColorType(SAME_COL), _nodeTextColors(Color(0,0,0)),
     
    330330  using T::_nodePsTextsPreamble;
    331331 
    332   using T::_undir;
     332  using T::_u;
    333333  using T::_pleaseRemoveOsStream;
    334334
     
    735735  ///Sets whether the the graph is undirected
    736736  ///
    737   GraphToEps<T> &undir(bool b=true) {_undir=b;return *this;}
     737  GraphToEps<T> &u(bool b=true) {_u=b;return *this;}
    738738  ///Sets whether the the graph is directed
    739739
    740740  ///Sets whether the the graph is directed.
    741741  ///Use it to show the undirected edges as a pair of directed ones.
    742   GraphToEps<T> &bidir(bool b=true) {_undir=!b;return *this;}
     742  GraphToEps<T> &bidir(bool b=true) {_u=!b;return *this;}
    743743
    744744  ///Sets the title.
     
    959959        std::vector<Edge> el;
    960960        for(EdgeIt e(g);e!=INVALID;++e)
    961           if((!_undir||g.source(e)<g.target(e))&&_edgeWidths[e]>0)
     961          if((!_u||g.source(e)<g.target(e))&&_edgeWidths[e]>0)
    962962            el.push_back(e);
    963963        std::sort(el.begin(),el.end(),edgeLess(g));
     
    10471047      }
    10481048      else for(EdgeIt e(g);e!=INVALID;++e)
    1049         if((!_undir||g.source(e)<g.target(e))&&_edgeWidths[e]>0)
     1049        if((!_u||g.source(e)<g.target(e))&&_edgeWidths[e]>0)
    10501050          if(_drawArrows) {
    10511051            xy<double> d(mycoords[g.target(e)]-mycoords[g.source(e)]);
Note: See TracChangeset for help on using the changeset viewer.