| 1041 | /// \pre \ref run() must be called before using this function. |
| 1042 | template <typename FlowMap> |
| 1043 | void flowMap(FlowMap &map) const { |
| 1044 | Arc a; _graph.first(a); |
| 1045 | for (; a != INVALID; _graph.next(a)) { |
| 1046 | map.set(a, _flow[getArcID(a)]); |
| 1047 | } |
| 1048 | } |
| 1049 | |
| 1050 | /// \brief Return the potential (dual value) of the given node. |
| 1051 | /// |