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.
Access item of highest priority.
2-tuple of object and priority.
IndexError – When trying to access the top element of an empty queue.