Defined in File BFS.hpp
Iterate over nodes in breadth-first search order starting from the unique nodes within the given range. All start nodes are visited at distance 0. Duplicate start nodes are ignored.
G – The input graph.
first – The first element of the start node range.
last – The end of the start node range.
handle – Takes a node, or a node and its distance from the nearest start node.
std::runtime_error – If a start node is not in the graph.