Skip to content

CXNetworkCollectNeighbors

function

Back to Helios Network Native C API

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

Description

Collects unique one-hop neighbors for one or more source nodes. - sourceNodes can contain any node ids; inactive/out-of-range entries are ignored. - direction controls traversal for directed graphs (out, in, both). - includeSourceNodes controls whether source nodes can appear in outNodeSelector. - outEdgeSelector is optional; pass NULL to skip edge collection.

Signature

CX_EXTERN CXBool CXNetworkCollectNeighbors( CXNetworkRef network, const CXIndex *sourceNodes, CXSize sourceCount, CXNeighborDirection direction, CXBool includeSourceNodes, CXNodeSelectorRef outNodeSelector, CXEdgeSelectorRef outEdgeSelector );