| 1067 | /// \pre \ref run() must be called before using this function. |
| 1068 | template <typename PotentialMap> |
| 1069 | void potentialMap(PotentialMap &map) const { |
| 1070 | Node n; _graph.first(n); |
| 1071 | for (; n != INVALID; _graph.next(n)) { |
| 1072 | map.set(n, _pi[_node_id(n)]); |
| 1073 | } |
| 1074 | } |
| 1075 | |
| 1076 | /// @} |
| 1077 |