| 909 | /// \pre \ref run() must be called before using this function. |
| 910 | template <typename FlowMap> |
| 911 | void flowMap(FlowMap &map) const { |
| 912 | Arc a; _graph.first(a); |
| 913 | for (; a != INVALID; _graph.next(a)) { |
| 914 | map.set(a, _flow[getArcID(a)]); |
| 915 | } |
| 916 | } |
| 917 | |
| 918 | /// \brief Return the potential (dual value) of the given node. |
| 919 | /// |