Returns array of sorted keys in the ascending order
Returns number of items stored in the interval tree
Return array of values in the ascending keys order
Tree visitor. For each node implement a callback function.
Method calls a callback function with two parameters (key, value)
function to be called for each tree item
Insert new item into interval tree
interval object or array of two numbers [low, high]
value representing any object (optional)
returns reference to inserted node as an object {key:NumberInterval, value: value}
Left rotate subtree around given node. exchange x.right and x, and take x.right.left as x.right
Value Mapper. Walk through every node and map node value to another value
function to be called for each tree item
Calculate max property for all nodes in the path from given node to the root
Right rotate subtree around given node.
Returns array of entry values which keys intersect with given interval
If no values stored in the tree, returns array of keys which intersect given interval
search interval, or tuple [low, high]
optional function that maps (value, key) to custom output
Throw error if not every path from root to bottom has same black height
Delete node from the tree, and fixup tree properties
Recolor nodes and perform rotations to preserve red-black tree properties after delete.
Insert new node into the tree.
Recolor nodes and perform rotations to preserve red-black tree properties after insert.
Walk through the tree and call callback function for each node
Returns array of items (<key,value> pairs) in the ascended keys order