CXNetworkLeidenModularity
function
Back to Helios Network Native C API
- Kind
- function
- Source
- src/native/include/helios/CXNetwork.h:920
Description
Runs Leiden community detection optimizing (weighted) modularity. - For undirected graphs, uses the standard modularity objective. - For directed graphs, uses the directed modularity formulation. - resolution corresponds to the modularity resolution parameter (gamma). - When edgeWeightAttribute is NULL/empty, every edge has weight 1. Writes the resulting community id into a node attribute (created when missing) of type CXUnsignedIntegerAttributeType and dimension 1. Returns the number of detected communities, or 0 on failure.