Skip to content

CXNetworkCompact

function

Back to Helios Network Native C API

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

Description

Compacts the network so that node and edge indices become contiguous starting at zero and capacities shrink to match the number of active elements. When nodeOriginalIndexAttr or edgeOriginalIndexAttr are provided, the function records the previous indices in attributes of type CXUnsignedIntegerAttributeType. Returns CXFalse on allocation failure or when incompatible attributes are encountered.

Signature

CX_EXTERN CXBool CXNetworkCompact( CXNetworkRef network, const CXString nodeOriginalIndexAttr, const CXString edgeOriginalIndexAttr );