Skip to content

CXNetworkMeasureConnectedComponents

function

Back to Helios Network Native C API

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

Description

Measures connected components. - Weak mode treats directed edges as undirected (weakly-connected components). - Strong mode computes strongly-connected components on directed graphs. Undirected graphs behave like weak mode. Component ids are written into outNodeComponent (length must be at least CXNetworkNodeCapacity(network)). Inactive nodes receive id 0. Returns the number of detected components.

Signature

CX_EXTERN CXSize CXNetworkMeasureConnectedComponents( CXNetworkRef network, CXConnectedComponentsMode mode, uint32_t *outNodeComponent, uint32_t *outLargestComponentSize );