equal
deleted
inserted
replaced
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 } |