Bug fix in Preflow and Circulation (#307)
authorPeter Kovacs <kpeter@inf.elte.hu>
Tue, 18 Aug 2009 10:24:31 +0200
changeset 6901f08e846df29
parent 682 257e91516e09
child 691 31a389202e65
child 694 4792459983d0
Bug fix in Preflow and Circulation (#307)
lemon/circulation.h
lemon/preflow.h
     1.1 --- a/lemon/circulation.h	Fri May 29 17:46:48 2009 +0100
     1.2 +++ b/lemon/circulation.h	Tue Aug 18 10:24:31 2009 +0200
     1.3 @@ -453,7 +453,7 @@
     1.4      /// \brief Sets the tolerance used by algorithm.
     1.5      ///
     1.6      /// Sets the tolerance used by algorithm.
     1.7 -    Circulation& tolerance(const Tolerance& tolerance) const {
     1.8 +    Circulation& tolerance(const Tolerance& tolerance) {
     1.9        _tol = tolerance;
    1.10        return *this;
    1.11      }
    1.12 @@ -462,7 +462,7 @@
    1.13      ///
    1.14      /// Returns a const reference to the tolerance.
    1.15      const Tolerance& tolerance() const {
    1.16 -      return tolerance;
    1.17 +      return _tol;
    1.18      }
    1.19  
    1.20      /// \name Execution Control
     2.1 --- a/lemon/preflow.h	Fri May 29 17:46:48 2009 +0100
     2.2 +++ b/lemon/preflow.h	Tue Aug 18 10:24:31 2009 +0200
     2.3 @@ -374,7 +374,7 @@
     2.4      /// \brief Sets the tolerance used by algorithm.
     2.5      ///
     2.6      /// Sets the tolerance used by algorithm.
     2.7 -    Preflow& tolerance(const Tolerance& tolerance) const {
     2.8 +    Preflow& tolerance(const Tolerance& tolerance) {
     2.9        _tolerance = tolerance;
    2.10        return *this;
    2.11      }
    2.12 @@ -383,7 +383,7 @@
    2.13      ///
    2.14      /// Returns a const reference to the tolerance.
    2.15      const Tolerance& tolerance() const {
    2.16 -      return tolerance;
    2.17 +      return _tolerance;
    2.18      }
    2.19  
    2.20      /// \name Execution Control