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)
- In
Graph.Init.c:8:
static bool test_graph_reserve_clear(void) {
WriteFmt("Testing GraphReserve and GraphClear\n");
typedef Graph(int) IntGraph;- In
Graph.Init.c:13:
IntGraph graph = GraphInit();
GraphReserve(&graph, 8);
ValidateGraph(&graph);
Last updated on