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

deleteMin -- deletes the minimum element of the queue

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:

  • deleteMin(PriorityQueue)

For the programmer

The object deleteMin is a method function.


The source of this document is in EquivariantGB.m2:1509:0.