COIN-OR::LEMON - Graph Library

Changeset 2041:28df5272df99 in lemon-0.x


Ignore:
Timestamp:
04/07/06 11:52:30 (18 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2680
Message:

Forgotten functions in the graph adaptor extenders.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/graph_adaptor_extender.h

    r2031 r2041  
    721721    }
    722722
     723    Node oppositeNode(const Node &n, const UEdge &e) const {
     724      if( n == Parent::source(e))
     725        return Parent::target(e);
     726      else if( n == Parent::target(e))
     727        return Parent::source(e);
     728      else
     729        return INVALID;
     730    }
     731
     732    Edge oppositeEdge(const Edge &e) const {
     733      return Parent::direct(e, !Parent::direction(e));
     734    }
     735
     736    using Parent::direct;
     737    Edge direct(const UEdge &ue, const Node &s) const {
     738      return Parent::direct(ue, Parent::source(ue) == s);
     739    }
     740
    723741  };
    724742
Note: See TracChangeset for help on using the changeset viewer.