momepy.
mean_node_dist
Calculates mean distance to neighbouring nodes.
Mean of values in length attribute.
length
Graph representing street network. Ideally generated from GeoDataFrame using momepy.gdf_to_nx()
momepy.gdf_to_nx()
calculated attribute name
name of attribute of segment length (geographical)
if True, shows progress bars in loops and indication of steps
networkx.Graph
Examples
>>> network_graph = mm.mean_node_dist(network_graph)