Skip to content

CXNetworkMeasureBetweennessCentrality

function

Back to Helios Network Native C API

Kind
function
Source
src/native/include/helios/CXNetwork.h:711

Description

Runs Brandes betweenness centrality (weighted when an edge weight attribute is provided, unweighted otherwise). - sourceNodes can restrict the set of source nodes used by the algorithm. When NULL/empty, all active nodes are used. - Set accumulate to CXTrue to add into inOutNodeBetweenness instead of clearing it first (useful for chunked stepping). - Output buffer length must be at least CXNetworkNodeCapacity(network). Returns the number of source nodes actually processed.

Signature

CX_EXTERN CXSize CXNetworkMeasureBetweennessCentrality( CXNetworkRef network, const CXString edgeWeightAttribute, CXMeasurementExecutionMode executionMode, const CXIndex *sourceNodes, CXSize sourceCount, CXBool normalize, CXBool accumulate, float *inOutNodeBetweenness );