top

property MaxHeap.top

Access item of highest priority.

Type:

2-tuple of object and priority.

Raises:

IndexError – When trying to access the top element of an empty queue.