COIN-OR::LEMON - Graph Library

Changeset 237:7fb8b67d2c5e in lemon-0.x for src


Ignore:
Timestamp:
03/23/04 12:12:48 (21 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@335
Message:

.

Location:
src/work
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/work/athos/xy/xy.h

    r207 r237  
    1818     
    1919      ///Default constructor: both coordinates become 0
    20       xy() { _x=_y=0; }
     20      xy() : _x(0), _y(0 ){ /*_x=_y=0;*/ }
    2121
    2222      ///Constructing from coordinates
    23       xy(T a, T b) { _x=a; _y=b; }
     23      xy(T a, T b) : _x(a), _x(b) { /*_x=a; _y=b;*/ }
    2424
    2525      ///Gives back the x coordinate
  • src/work/marci/graph_wrapper.h

    r236 r237  
    329329  class RevGraphWrapper : public GraphWrapperSkeleton<GraphWrapper> {
    330330  public:
     331    typedef typename GraphWrapperSkeleton<GraphWrapper>::Node Node;
     332    typedef typename GraphWrapperSkeleton<GraphWrapper>::Edge Edge;
    331333    typedef typename GraphWrapperSkeleton<GraphWrapper>::OutEdgeIt InEdgeIt;
    332334    typedef typename GraphWrapperSkeleton<GraphWrapper>::InEdgeIt OutEdgeIt;
     335
     336    Node head(const Edge& e) const
     337      { return GraphWrapperSkeleton<GraphWrapper>::tail(e); }
     338    Node tail(const Edge& e) const
     339      { return GraphWrapperSkeleton<GraphWrapper>::head(e); }
    333340   
    334341    RevGraphWrapper(GraphWrapper _gw) :
Note: See TracChangeset for help on using the changeset viewer.