searches for a specific edge
| 363 | |
| 364 | // searches for a specific edge |
| 365 | EdgeIterator FindEdge(const NodeIterator from, const NodeIterator to) const |
| 366 | { |
| 367 | for (const auto i : irange(BeginEdges(from), EndEdges(from))) |
| 368 | { |
| 369 | if (to == edge_list[i].target) |
| 370 | { |
| 371 | return i; |
| 372 | } |
| 373 | } |
| 374 | return SPECIAL_EDGEID; |
| 375 | } |
| 376 | |
| 377 | // searches for a specific edge |
| 378 | EdgeIterator FindSmallestEdge(const NodeIterator from, const NodeIterator to) const |