cityImage.nodes_degree#
- cityImage.nodes_degree(edges_gdf)[source]#
It returns a dictionary where keys are nodes identifier (e.g. “nodeID”) and values their degree.
- Parameters:
edges_gdf (LineString GeoDataFrame) – The street segments GeoDataFrame.
- Returns:
dd – A dictionary where each item consists of a nodeID (key) and degree values (values).
- Return type:
dictionary