aryagraph.algorithms.structure.average_clustering#
- aryagraph.algorithms.structure.average_clustering(g: Any, weight: str | Callable[[Hashable, Hashable, dict], float] | None = None, count_zeros: bool = True) float[source]#
Mean of
clustering(); withcount_zeros=Falsezero-valued nodes are skipped.Returns 0.0 when there is nothing to average (networkx raises
ZeroDivisionError).