Function pathfinding::directed::dijkstra::dijkstra_reach
source · pub fn dijkstra_reach<N, C, FN, IN>(
start: &N,
successors: FN
) -> DijkstraReachable<N, C, FN> ⓘ
Expand description
Visit all nodes that are reachable from a start node. The node will be visited in order of cost, with the closest nodes first.
The successors
function receives the current node and the best
cost up to this node, and returns an iterator of successors
associated with their move cost.