cityImage.dual_graph_fromGDF#

cityImage.dual_graph_fromGDF(nodes_dual, edges_dual)[source]#

The function generates a NetworkX.Graph from dual-nodes and -edges GeoDataFrames.

Parameters:
  • nodes_dual (Point GeoDataFrame) – The GeoDataFrame of the dual nodes, namely the street segments’ centroids.

  • edges_dual (LineString GeoDataFrame) – The GeoDataFrame of the dual edges, namely the links between street segments’ centroids.

Returns:

Dg – The dual graph of the street network.

Return type:

NetworkX.Graph