# HG changeset patch # User Alpar Juttner # Date 1267649309 0 # Node ID ab21ca0937458102b5a722069cf2bec2f82d3433 # Parent ac5f72c4836761d7728866545fa6e54899b1d359# Parent 930ddeafdb209dd86cb111029bb344b18ac3b348 Merge #306 diff -r ac5f72c48367 -r ab21ca093745 lemon/hao_orlin.h --- a/lemon/hao_orlin.h Wed Mar 03 17:22:13 2010 +0000 +++ b/lemon/hao_orlin.h Wed Mar 03 20:48:29 2010 +0000 @@ -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) {