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

Function dijkstra_distance

common/dijkstra.c:36–39  ·  view source on GitHub ↗

Returns UINT_MAX if unreachable. */

Source from the content-addressed store, hash-verified

34
35/* Returns UINT_MAX if unreachable. */
36u32 dijkstra_distance(const struct dijkstra *dij, u32 node_idx)
37{
38 return dij[node_idx].distance;
39}
40
41struct gossmap_chan *dijkstra_best_chan(const struct dijkstra *dij,
42 u32 node_idx)

Callers 7

dijkstra_to_hopsFunction · 0.85
filter_routehintsFunction · 0.85
mainFunction · 0.85
least_costFunction · 0.85
count_possible_sourcesFunction · 0.85
measure_least_costFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68