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

Function dijkstra_distance

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

Returns UINT_MAX if unreachable. */

Source from the content-addressed store, hash-verified

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

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected