algorithms

algorithms.clusteringCoefficient

clusteringCoefficient(options: CommonAlgorithmOptions & AlgorithmWriteOptions): Promise<NodeScalarResult>

Compute the local clustering coefficient for each node.

Dispatched to the background worker. Emits the standard algorithm lifecycle events. When writeTo is supplied coefficients are written to node properties (recorded in history, undoable).

optionsCommonAlgorithmOptions & AlgorithmWriteOptionsCommonAlgorithmOptions merged with AlgorithmWriteOptions.

Returns: Promise<NodeScalarResult>