iduedu.relabel_urban_graph¶
- iduedu.relabel_urban_graph(graph_gdf)[source]¶
Relabel node ids to a dense
RangeIndexand update edge endpoints.The function does not mutate the source graph. For multigraphs,
kis recalculated after relabeling to keep['u', 'v', 'k']unique.- Return type:
- Parameters:
graph_gdf (UrbanGraph)