iduedu.urban_graph2nx_graph

iduedu.urban_graph2nx_graph(urban_graph)[source]

Convert an UrbanGraph to 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:

Any

Returns:

networkx.Graph, networkx.DiGraph, networkx.MultiGraph or networkx.MultiDiGraph with node and edge attributes copied from the UrbanGraph tables.