mlpy.auxiliary.datastructs.Queue

class mlpy.auxiliary.datastructs.Queue[source]

Bases: object

The abstract queue base class.

The queue class handles core functionality common for any type of queue. All queues inherit from the queue base class.

Methods

empty() Check if the queue is empty.
extend(items) Extend the queue by a number of elements.
get(item) Return the element in the queue identical to item.
pop() Pop an element from the queue.
push(item) Push a new element on the queue
remove(item) Remove an element from the queue.