iduedu.urban_graph2nx_graph¶
- iduedu.urban_graph2nx_graph(urban_graph)[source]¶
Convert an
UrbanGraphto a NetworkX graph.NetworkX is not required for normal IduEdu workflows, but this conversion is useful at integration boundaries with tools that consume NetworkX graph objects.
- Parameters:
urban_graph (
UrbanGraph) – Tabular urban graph to convert.- Return type:
- Returns:
networkx.Graph,networkx.DiGraph,networkx.MultiGraphornetworkx.MultiDiGraphwith node and edge attributes copied from the UrbanGraph tables.