searches for a specific edge
| 174 | |
| 175 | // searches for a specific edge |
| 176 | EdgeIterator FindEdge(const NodeIterator from, const NodeIterator to) const |
| 177 | { |
| 178 | for (const auto i : irange(BeginEdges(from), EndEdges(from))) |
| 179 | { |
| 180 | if (to == edge_array[i].target) |
| 181 | { |
| 182 | return i; |
| 183 | } |
| 184 | } |
| 185 | return SPECIAL_EDGEID; |
| 186 | } |
| 187 | |
| 188 | /** |
| 189 | * Finds the edge with the smallest `.weight` going from `from` to `to` |
no test coverage detected