lemon/hao_orlin.h
changeset 863 a93f1a27d831
parent 597 2ca0cdb5f366
child 877 141f9c0db4a3
equal deleted inserted replaced
7:56d45e2efc2c 8:4f44244994d6
   163       if (_flow) {
   163       if (_flow) {
   164         delete _flow;
   164         delete _flow;
   165       }
   165       }
   166     }
   166     }
   167 
   167 
       
   168     /// \brief Set the tolerance used by the algorithm.
       
   169     ///
       
   170     /// This function sets the tolerance object used by the algorithm.
       
   171     /// \return <tt>(*this)</tt>
       
   172     HaoOrlin& tolerance(const Tolerance& tolerance) {
       
   173       _tolerance = tolerance;
       
   174       return *this;
       
   175     }
       
   176 
       
   177     /// \brief Returns a const reference to the tolerance.
       
   178     ///
       
   179     /// This function returns a const reference to the tolerance object
       
   180     /// used by the algorithm.
       
   181     const Tolerance& tolerance() const {
       
   182       return _tolerance;
       
   183     }
       
   184 
   168   private:
   185   private:
   169 
   186 
   170     void activate(const Node& i) {
   187     void activate(const Node& i) {
   171       (*_active)[i] = true;
   188       (*_active)[i] = true;
   172 
   189