Macaulay2 » Documentation
Packages » PriorityQueue > deleteMin
next | previous | forward | backward | up | index | toc

deleteMin -- deletes the minimum element of the queue

Synopsis

Description

i1 : Q = priorityQueue {1,2,3}

o1 = PriorityQueue{...4...}

o1 : PriorityQueue
i2 : deleteMin Q

o2 = PriorityQueue{...4...}

o2 : PriorityQueue
i3 : min Q

o3 = 2

Caveat

The priority queue Q is mutable and is altered by deleteMin. Q is also the output of the function.

See also

Ways to use deleteMin :

For the programmer

The object deleteMin is a method function.