algorithms

algorithms.labelPropagation

labelPropagation(options: LabelPropagationOptions & AlgorithmWriteOptions): Promise<NodeGroupResult>

Detect communities using the Label Propagation algorithm.

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

optionsLabelPropagationOptions & AlgorithmWriteOptionsLabelPropagationOptions merged with AlgorithmWriteOptions.

Returns: Promise<NodeGroupResult>