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]¶
Return nearest source_node and dist columns for each reachable node.
This pandas table includes both source identifiers and costs. Use
multi_source_dijkstra()withoutput="distances"anddistance_format="dense"for an array of nearest-source costs.