Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/arnauddri/algorithms
/ Extract
Method
Extract
data-structures/priority-queue/priority_queue.go:48–50 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
46
}
47
48
func
(pq *PQ) Extract() (el Item) {
49
return
pq.data.Extract().(Item)
50
}
51
52
func
(pq *PQ) ChangePriority(val
interface
{}, priority int) {
53
var
storage = queue.New()
Callers
4
ChangePriority
Method · 0.95
TestMaxPriorityQueue
Function · 0.45
TestMinPriorityQueue
Function · 0.45
TestChangePriority
Function · 0.45
Calls
no outgoing calls
Tested by
3
TestMaxPriorityQueue
Function · 0.36
TestMinPriorityQueue
Function · 0.36
TestChangePriority
Function · 0.36