class documentation
class UnsortedPriorityQueue(PriorityQueueBase):
A min-oriented priority queue implemented with an unsorted list.
Method | __init__ |
Create a new empty Priority Queue. |
Method | __len__ |
Return the number of items in the priority queue. |
Method | add |
Add a key-value pair. |
Method | min |
Return but do not remove (k,v) tuple with minimum key. |
Method | remove |
Remove and return (k,v) tuple with minimum key. |
Method | _find |
Return Position of item with minimum key. |
Instance Variable | _data |
Undocumented |
Inherited from PriorityQueueBase
:
Method | is |
Return True if the priority queue is empty. |
Class | _ |
Lightweight composite to store priority queue items. |