iduedu.multi_source_dijkstra_nearest_source¶
- iduedu.multi_source_dijkstra_nearest_source(urban_graph, *, source_nodes=None, gdf_sources=None, graph_node_column='graph_node_id', weight='time_min', cutoff=None, reverse=False, dtype=<class 'numpy.float32'>)[source]¶
Find the nearest source and its distance for each reachable graph node.
Arguments are the same as for
multi_source_dijkstra_path_length().- Return type:
- Returns:
DataFrameindexed by reachable graph node ids withsource_nodeanddistcolumns. The normalized source mapping is stored inresult.attrs["source_nodes"].- Parameters: