The heap's nodes type.
Construct a binary heap object.
The heap's nodes type.
The function used to make heap's nodes comparisons.
Decrease the value of a node in the heap and sort the tree accordingly.
The data of the element to update.
Delete a node from the heap and sort the tree accordingly.
The id of the element to delete.
Pop the first node from the heap and sort the tree accordingly.
A node or undefined if the heap is empty.
Increase the value of a node in the heap and sort the tree accordingly.
The data of the element to update.
A data-structure class to represent a binary heap.
Link
https://en.wikipedia.org/wiki/Binary_heap