Skip to content

Topology

Back to Helios Network Native C API

Node, edge, neighbor, compaction, and topology mutation APIs.

function CXNetworkAddEdges Inserts the provided edges, writing the new indices to `outIndices` when supplied. Edges are expressed as contiguous (from,to) pairs. function CXNetworkAddNodes Appends `count` new nodes to the network. When `outIndices` is non-null it receives the indices assigned to the created nodes. function CXNetworkCollectNeighbors 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. function CXNetworkCollectNeighborsAtLevel Collects neighbors at exactly the given concentric level (shortest-path hop distance). - `level == 0` refers to the source set itself. - `includeSourceNodes` only affects whether level-0 source nodes are included. - `outEdgeSelector` is optional; pass NULL to skip edge collection. function CXNetworkCollectNeighborsUpToLevel Collects neighbors up to (and including) the given concentric level. - `maxLevel == 0` returns only the source set when `includeSourceNodes` is true. - `outEdgeSelector` is optional; pass NULL to skip edge collection. function CXNetworkCompact 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. function CXNetworkEdgeCapacity Returns the allocated edge capacity. function CXNetworkEdgeCount Returns the number of active edges currently stored. function CXNetworkEdgeFreeListCapacity Returns the allocated edge free-list capacity (reserved slots). function CXNetworkEdgeFreeListCount Returns the current edge free-list size (recycled indices). function CXNetworkGetEdgeValidRange Returns the min/max active edge indices as [start,end). function CXNetworkGetNodeValidRange Returns the min/max active node indices as [start,end). function CXNetworkInNeighbors Returns the inbound neighbor container for the given node. function CXNetworkNodeCapacity Returns the allocated node capacity (useful for buffer sizing). function CXNetworkNodeCount Returns the number of active nodes currently stored. function CXNetworkNodeFreeListCapacity Returns the allocated node free-list capacity (reserved slots). function CXNetworkNodeFreeListCount Returns the current node free-list size (recycled indices). function CXNetworkOutNeighbors Returns the outbound neighbor container for the given node. function CXNetworkRemoveEdges Removes the supplied edges from the network. function CXNetworkRemoveNodes Removes the supplied nodes, reclaiming their indices for future use.