class documentation

Abstract base class for a priority queue.

Method __len__ Return the number of items in the priority queue.
Method add Add a key-value pair.
Method is_empty Return True if the priority queue is empty.
Method min Return but do not remove (k,v) tuple with minimum key.
Method remove_min Remove and return (k,v) tuple with minimum key.
Class _Item Lightweight composite to store priority queue items.
def is_empty(self):

Return True if the priority queue is empty.

def min(self):

Return but do not remove (k,v) tuple with minimum key.

Raise Empty exception if empty.

def remove_min(self):

Remove and return (k,v) tuple with minimum key.

Raise Empty exception if empty.