Skip to content

GraphAddNode

Description

Default node-add aliases the L-form: add a new node to the graph, taking ownership of lval’s payload when no deep-copy handler is configured.

Parameters

Name Direction Description
g in,out Graph handle.
lval in Addressable node payload to insert.

Success

Returns the new node’s stable GraphNodeId (non-zero); live_count grows by one.

Failure

Returns 0 on allocation failure; the graph and lval are unchanged.

Usage example (Cross-references)

Usage examples (Cross-references)
    
    static bool test_graph_add_node_semantics(void) {
        WriteFmt("Testing GraphAddNode semantics\n");
    
        DefaultAllocator alloc = DefaultAllocatorInit();
Last updated on