Skip to content

CXNetworkCopyNodeAttributesToEdgeAttributes

function

Back to Helios Network Native C API

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

Description

Copies node attributes into an edge attribute buffer using the network's topology. endpointMode controls which endpoint is copied: -1 = both, 0 = source only, 1 = destination only. When copying a single endpoint and duplicateSingleEndpoint is true, the chosen endpoint is written twice sequentially (for double-width edge attributes).

Signature

CX_EXTERN CXSize CXNetworkCopyNodeAttributesToEdgeAttributes( CXNetworkRef network, const uint8_t *nodeAttributes, CXSize nodeStrideBytes, uint8_t *edgeAttributes, CXSize edgeStrideBytes, int endpointMode, CXBool duplicateSingleEndpoint );