lemon/cycle_canceling.h
changeset 2588 4d3bc1d04c1d
parent 2581 054566ac0934
child 2593 8eed667ea23c
equal deleted inserted replaced
9:fa9fdbd9a69f 10:9ddffa4e8669
   353     /// \pre \ref run() must be called before using this function.
   353     /// \pre \ref run() must be called before using this function.
   354     const PotentialMap& potentialMap() const {
   354     const PotentialMap& potentialMap() const {
   355       return *_potential;
   355       return *_potential;
   356     }
   356     }
   357 
   357 
   358     /// \brief Returns the flow on the edge.
   358     /// \brief Returns the flow on the given edge.
   359     ///
   359     ///
   360     /// Returns the flow on the edge.
   360     /// Returns the flow on the given edge.
   361     ///
   361     ///
   362     /// \pre \ref run() must be called before using this function.
   362     /// \pre \ref run() must be called before using this function.
   363     Capacity flow(const Edge& edge) const {
   363     Capacity flow(const Edge& edge) const {
   364       return (*_flow)[edge];
   364       return (*_flow)[edge];
   365     }
   365     }
   366 
   366 
   367     /// \brief Returns the potential of the node.
   367     /// \brief Returns the potential of the given node.
   368     ///
   368     ///
   369     /// Returns the potential of the node.
   369     /// Returns the potential of the given node.
   370     ///
   370     ///
   371     /// \pre \ref run() must be called before using this function.
   371     /// \pre \ref run() must be called before using this function.
   372     Cost potential(const Node& node) const {
   372     Cost potential(const Node& node) const {
   373       return (*_potential)[node];
   373       return (*_potential)[node];
   374     }
   374     }