uheapq – heap queue algorithm
This module implements the heap queue algorithm.
A heap queue is simply a list that has its elements stored in a certain way.
Functions
- 
uheapq.heappush(heap, item)
- Push the - itemonto the- heap.
 
- 
uheapq.heappop(heap)
- Pop the first item from the - heap, and return it.  Raises IndexError if
heap is empty.
 
- 
uheapq.heapify(x)
- Convert the list - xinto a heap.  This is an in-place operation.