MCPcopy
hub / github.com/arnauddri/algorithms / Insert

Method Insert

data-structures/priority-queue/priority_queue.go:44–46  ·  view source on GitHub ↗
(el Item)

Source from the content-addressed store, hash-verified

42}
43
44func (pq *PQ) Insert(el Item) {
45 pq.data.Insert(heap.Item(el))
46}
47
48func (pq *PQ) Extract() (el Item) {
49 return pq.data.Extract().(Item)

Callers 4

ChangePriorityMethod · 0.45
TestMaxPriorityQueueFunction · 0.45
TestMinPriorityQueueFunction · 0.45
TestChangePriorityFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestMaxPriorityQueueFunction · 0.36
TestMinPriorityQueueFunction · 0.36
TestChangePriorityFunction · 0.36