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(); with count_zeros=False zero-valued nodes are skipped.

Returns 0.0 when there is nothing to average (networkx raises ZeroDivisionError).