COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/core.h

    r463 r319  
    33 * This file is a part of LEMON, a generic C++ optimization library.
    44 *
    5  * Copyright (C) 2003-2009
     5 * Copyright (C) 2003-2008
    66 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    77 * (Egervary Research Group on Combinatorial Optimization, EGRES).
     
    11711171    /// Construct a new ConEdgeIt iterating on the edges that
    11721172    /// connects nodes \c u and \c v.
    1173     ConEdgeIt(const Graph& g, Node u, Node v) : _graph(g), _u(u), _v(v) {
    1174       Parent::operator=(findEdge(_graph, _u, _v));
     1173    ConEdgeIt(const Graph& g, Node u, Node v) : _graph(g) {
     1174      Parent::operator=(findEdge(_graph, u, v));
    11751175    }
    11761176
     
    11841184    /// It increments the iterator and gives back the next edge.
    11851185    ConEdgeIt& operator++() {
    1186       Parent::operator=(findEdge(_graph, _u, _v, *this));
     1186      Parent::operator=(findEdge(_graph, _graph.u(*this),
     1187                                 _graph.v(*this), *this));
    11871188      return *this;
    11881189    }
    11891190  private:
    11901191    const Graph& _graph;
    1191     Node _u, _v;
    11921192  };
    11931193
Note: See TracChangeset for help on using the changeset viewer.