diff -r 39b6e65574c6 -r 0759d974de81 lemon/bits/graph_adaptor_extender.h --- a/lemon/bits/graph_adaptor_extender.h Thu Apr 02 22:34:03 2015 +0200 +++ b/lemon/bits/graph_adaptor_extender.h Sun Jan 05 22:24:56 2014 +0100 @@ -85,6 +85,9 @@ }; + LemonRangeWrapper1 nodes() { + return LemonRangeWrapper1(*this); + } class ArcIt : public Arc { const Adaptor* _adaptor; @@ -108,6 +111,10 @@ }; + LemonRangeWrapper1 arcs() { + return LemonRangeWrapper1(*this); + } + class OutArcIt : public Arc { const Adaptor* _adaptor; @@ -132,6 +139,10 @@ }; + LemonRangeWrapper2 outArcs(const Node& u) const { + return LemonRangeWrapper2(*this, u); + } + class InArcIt : public Arc { const Adaptor* _adaptor; @@ -156,6 +167,10 @@ }; + LemonRangeWrapper2 inArcs(const Node& u) const { + return LemonRangeWrapper2(*this, u); + } + Node baseNode(const OutArcIt &e) const { return Parent::source(e); } @@ -254,6 +269,10 @@ }; + LemonRangeWrapper1 nodes() { + return LemonRangeWrapper1(*this); + } + class ArcIt : public Arc { const Adaptor* _adaptor; @@ -277,6 +296,10 @@ }; + LemonRangeWrapper1 arcs() { + return LemonRangeWrapper1(*this); + } + class OutArcIt : public Arc { const Adaptor* _adaptor; @@ -301,6 +324,10 @@ }; + LemonRangeWrapper2 outArcs(const Node& u) const { + return LemonRangeWrapper2(*this, u); + } + class InArcIt : public Arc { const Adaptor* _adaptor; @@ -325,6 +352,10 @@ }; + LemonRangeWrapper2 inArcs(const Node& u) const { + return LemonRangeWrapper2(*this, u); + } + class EdgeIt : public Parent::Edge { const Adaptor* _adaptor; public: @@ -347,6 +378,11 @@ }; + LemonRangeWrapper1 edges() { + return LemonRangeWrapper1(*this); + } + + class IncEdgeIt : public Edge { friend class GraphAdaptorExtender; const Adaptor* _adaptor; @@ -372,6 +408,11 @@ } }; + LemonRangeWrapper2 incEdges(const Node& u) const { + return LemonRangeWrapper2(*this, u); + } + + Node baseNode(const OutArcIt &a) const { return Parent::source(a); }