MCPcopy Create free account
hub / github.com/ElementsProject/lightning / get_dijkstra

Function get_dijkstra

common/dijkstra.c:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47static struct dijkstra *get_dijkstra(const struct dijkstra *dij,
48 const struct gossmap *map,
49 const struct gossmap_node *n)
50{
51 return cast_const(struct dijkstra *, dij) + gossmap_node_idx(map, n);
52}
53
54/* We want a minheap, not a maxheap, so this is backwards! */
55static int less_comparer(const void *const ctx,

Callers 4

less_comparerFunction · 0.85
item_moverFunction · 0.85
mkheapFunction · 0.85
dijkstra_Function · 0.85

Calls 1

gossmap_node_idxFunction · 0.85

Tested by

no test coverage detected