iduedu.single_source_dijkstra_path

iduedu.single_source_dijkstra_path(urban_graph, source_node, target_node, *, weight='time_min', cutoff=None, reverse=False)[source]

Return one shortest node route, or [] when unreachable or beyond cutoff.

With reverse on a directed graph the route runs from target_node to source_node along the edge directions. The search is bidirectional (see shortest_path()).

Return type:

list[Any]

Parameters: