lemon/core.h
changeset 433 39b03fc708fd
parent 319 5e12d7734036
child 440 88ed40ad0d4f
child 502 39aaeea2d471
     1.1 --- a/lemon/core.h	Fri Dec 12 21:41:05 2008 +0000
     1.2 +++ b/lemon/core.h	Fri Dec 12 21:58:45 2008 +0000
     1.3 @@ -1170,8 +1170,8 @@
     1.4      ///
     1.5      /// Construct a new ConEdgeIt iterating on the edges that
     1.6      /// connects nodes \c u and \c v.
     1.7 -    ConEdgeIt(const Graph& g, Node u, Node v) : _graph(g) {
     1.8 -      Parent::operator=(findEdge(_graph, u, v));
     1.9 +    ConEdgeIt(const Graph& g, Node u, Node v) : _graph(g), _u(u), _v(v) {
    1.10 +      Parent::operator=(findEdge(_graph, _u, _v));
    1.11      }
    1.12  
    1.13      /// \brief Constructor.
    1.14 @@ -1183,12 +1183,12 @@
    1.15      ///
    1.16      /// It increments the iterator and gives back the next edge.
    1.17      ConEdgeIt& operator++() {
    1.18 -      Parent::operator=(findEdge(_graph, _graph.u(*this),
    1.19 -                                 _graph.v(*this), *this));
    1.20 +      Parent::operator=(findEdge(_graph, _u, _v, *this));
    1.21        return *this;
    1.22      }
    1.23    private:
    1.24      const Graph& _graph;
    1.25 +    Node _u, _v;
    1.26    };
    1.27  
    1.28