Skip to content
GraphNodePtrAt

GraphNodePtrAt

Description

Get pointer to node payload at given node id.

Parameters

Name Direction Description
g in,out Graph to query.
node_id in Node id to access.

Failure

Does not return on invalid or stale node id.

Usage example (Cross-references)

Usage examples (Cross-references)
        result      = result && !GraphHasEdge(&graph, blue, green);
        result      = result && !GraphHasEdge(&graph, red, blue);
        result      = result && (ZstrCompare(*GraphNodePtrAt(&graph, red), "red") == 0);
    
        GraphDeinit(&graph);
Last updated on