Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/lightning
/ priorityqueue_top
Function
priorityqueue_top
plugins/askrene/child/priorityqueue.c:128–131 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
126
}
127
128
u32 priorityqueue_top(const struct priorityqueue *q) {
129
assert(!priorityqueue_empty(q));
130
return q->base[0];
131
}
132
133
bool priorityqueue_empty(const struct priorityqueue *q) {
134
return q->heapsize == 0;
Callers
5
priorityqueue_show
Function · 0.85
main
Function · 0.85
dijkstra_path
Function · 0.85
dijkstra_nearest_sink
Function · 0.85
priorityqueue_pop
Function · 0.85
Calls
1
priorityqueue_empty
Function · 0.85
Tested by
2
priorityqueue_show
Function · 0.68
main
Function · 0.68