| igraph Reference Manual |
|---|
int igraph_heap_init_array(igraph_heap_t *h, igraph_real_t* data, long int len);
Initializes a heap object from an array, the heap is also built of course (constructor).
Arguments:
|
Pointer to an uninitialized heap object. |
|
Pointer to an array of base data type. |
|
The length of the array at |
Returns:
Error code. |
Time complexity: O(n), the number of elements in the heap.
<< 7.1. igraph_heap_init — Initializes an empty heap object. |
7.3. igraph_heap_destroy — Destroys an initialized heap object. >> |