lemon/cost_scaling.h
changeset 2602 1c7790d9e025
parent 2581 054566ac0934
child 2620 8f41a3129746
equal deleted inserted replaced
1:d21de5f4cf49 2:7337a468dbbf
   397     /// \pre \ref run() must be called before using this function.
   397     /// \pre \ref run() must be called before using this function.
   398     const PotentialMap& potentialMap() const {
   398     const PotentialMap& potentialMap() const {
   399       return *_potential;
   399       return *_potential;
   400     }
   400     }
   401 
   401 
   402     /// \brief Returns the flow on the edge.
   402     /// \brief Returns the flow on the given edge.
   403     ///
   403     ///
   404     /// Returns the flow on the edge.
   404     /// Returns the flow on the given edge.
   405     ///
   405     ///
   406     /// \pre \ref run() must be called before using this function.
   406     /// \pre \ref run() must be called before using this function.
   407     Capacity flow(const Edge& edge) const {
   407     Capacity flow(const Edge& edge) const {
   408       return (*_flow)[edge];
   408       return (*_flow)[edge];
   409     }
   409     }
   410 
   410 
   411     /// \brief Returns the potential of the node.
   411     /// \brief Returns the potential of the given node.
   412     ///
   412     ///
   413     /// Returns the potential of the node.
   413     /// Returns the potential of the given node.
   414     ///
   414     ///
   415     /// \pre \ref run() must be called before using this function.
   415     /// \pre \ref run() must be called before using this function.
   416     Cost potential(const Node& node) const {
   416     Cost potential(const Node& node) const {
   417       return (*_potential)[node];
   417       return (*_potential)[node];
   418     }
   418     }