Merge #306
authorAlpar Juttner <alpar@cs.elte.hu>
Wed, 03 Mar 2010 20:48:29 +0000
changeset 861ab21ca093745
parent 859 ac5f72c48367
parent 860 930ddeafdb20
child 862 b6f76c95992e
Merge #306
     1.1 --- a/lemon/hao_orlin.h	Wed Mar 03 17:22:13 2010 +0000
     1.2 +++ b/lemon/hao_orlin.h	Wed Mar 03 20:48:29 2010 +0000
     1.3 @@ -165,6 +165,23 @@
     1.4        }
     1.5      }
     1.6  
     1.7 +    /// \brief Set the tolerance used by the algorithm.
     1.8 +    ///
     1.9 +    /// This function sets the tolerance object used by the algorithm.
    1.10 +    /// \return <tt>(*this)</tt>
    1.11 +    HaoOrlin& tolerance(const Tolerance& tolerance) {
    1.12 +      _tolerance = tolerance;
    1.13 +      return *this;
    1.14 +    }
    1.15 +
    1.16 +    /// \brief Returns a const reference to the tolerance.
    1.17 +    ///
    1.18 +    /// This function returns a const reference to the tolerance object
    1.19 +    /// used by the algorithm.
    1.20 +    const Tolerance& tolerance() const {
    1.21 +      return _tolerance;
    1.22 +    }
    1.23 +
    1.24    private:
    1.25  
    1.26      void activate(const Node& i) {