# HG changeset patch # User Alpar Juttner # Date 2010-03-03 21:48:29 # Node ID ab21ca0937458102b5a722069cf2bec2f82d3433 # Parent ac5f72c4836761d7728866545fa6e54899b1d359 # Parent 930ddeafdb209dd86cb111029bb344b18ac3b348 Merge #306 diff --git a/lemon/hao_orlin.h b/lemon/hao_orlin.h --- a/lemon/hao_orlin.h +++ b/lemon/hao_orlin.h @@ -165,6 +165,23 @@ } } + /// \brief Set the tolerance used by the algorithm. + /// + /// This function sets the tolerance object used by the algorithm. + /// \return (*this) + HaoOrlin& tolerance(const Tolerance& tolerance) { + _tolerance = tolerance; + return *this; + } + + /// \brief Returns a const reference to the tolerance. + /// + /// This function returns a const reference to the tolerance object + /// used by the algorithm. + const Tolerance& tolerance() const { + return _tolerance; + } + private: void activate(const Node& i) {