Skip to content

GraphReserve

Description

Reserve capacity for at least n slots.

Parameters

Name Direction Description
g in,out Graph to reserve storage for.
n in Minimum number of slots expected.

Usage example (Cross-references)

Usage examples (Cross-references)
    
    static bool test_graph_reserve_clear(void) {
        WriteFmt("Testing GraphReserve and GraphClear\n");
    
        typedef Graph(int) IntGraph;
        IntGraph graph = GraphInit();
    
        GraphReserve(&graph, 8);
        ValidateGraph(&graph);
Last updated on