Allow parallel edges. */
| 125 | |
| 126 | /** Allow parallel edges. */ |
| 127 | struct AllowParallelEdges { |
| 128 | template <typename EP> |
| 129 | EP operator()(const EP& a, const EP&) const |
| 130 | { |
| 131 | return a; |
| 132 | } |
| 133 | }; |
| 134 | |
| 135 | /** Read a graph from the specified file. */ |
| 136 | static void readGraph(const string& path, Graph& g) |