momepy.
clustering
Calculates the squares clustering coefficient for nodes.
Wrapper around networkx.square_clustering.
networkx.square_clustering
Graph representing street network. Ideally generated from GeoDataFrame using momepy.gdf_to_nx()
momepy.gdf_to_nx()
calculated attribute name
networkx.Graph
Examples
>>> network_graph = mm.clustering(network_graph)