| igraph Reference Manual |
|---|
int igraph_heap_init(igraph_heap_t* h, long int alloc_size);
Creates an empty heap, but allocates size for some elements.
Arguments:
|
Pointer to an uninitialized heap object. |
|
Number of elements to allocate memory for. |
Returns:
Error code. |
Time complexity: O(alloc_size), assuming memory allocation is a
linear operation.
| << 7. Maximum and minimum heaps | 7.2. igraph_heap_init_array — Build a heap from an array. >> |