lemon/preflow.h
changeset 407 db3251947eba
parent 406 624e673efa76
child 408 37054b67d807
equal deleted inserted replaced
2:3d208fa9ee67 3:b30313fcaa5f
   443     /// flow or at least a preflow, ie. in each node excluding the
   443     /// flow or at least a preflow, ie. in each node excluding the
   444     /// target the incoming flow should greater or equal to the
   444     /// target the incoming flow should greater or equal to the
   445     /// outgoing flow.
   445     /// outgoing flow.
   446     /// \return %False when the given \c flowMap is not a preflow.
   446     /// \return %False when the given \c flowMap is not a preflow.
   447     template <typename FlowMap>
   447     template <typename FlowMap>
   448     bool flowInit(const FlowMap& flowMap) {
   448     bool init(const FlowMap& flowMap) {
   449       createStructures();
   449       createStructures();
   450 
   450 
   451       for (ArcIt e(_graph); e != INVALID; ++e) {
   451       for (ArcIt e(_graph); e != INVALID; ++e) {
   452         _flow->set(e, flowMap[e]);
   452         _flow->set(e, flowMap[e]);
   453       }
   453       }