cityImage.multiGraph_fromGDF#
- cityImage.multiGraph_fromGDF(nodes_gdf, edges_gdf, nodeIDcolumn)[source]#
From two GeoDataFrames (nodes and edges), it creates a NetworkX.MultiGraph.
- Parameters:
nodes_gdf (Point GeoDataFrame) – The nodes (junctions) GeoDataFrame.
edges_gdf (LineString GeoDataFrame) – The street segments GeoDataFrame.
nodeIDcolumn (string) – Column name that indicates the node identifier column.
- Returns:
G – The street network graph.
- Return type:
NetworkX.MultiGraph