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

Function get_dijkstra

common/dijkstra.c:44–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44static struct dijkstra *get_dijkstra(const struct dijkstra *dij,
45 const struct gossmap *map,
46 const struct gossmap_node *n)
47{
48 return cast_const(struct dijkstra *, dij) + gossmap_node_idx(map, n);
49}
50
51/* We want a minheap, not a maxheap, so this is backwards! */
52static 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