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

Function node_adjacency_next

plugins/renepay/mcf.c:438–444  ·  view source on GitHub ↗

Helper function. * Given node idx `node` and `arc`, returns the idx of the next arc whose tail is `node`. */

Source from the content-addressed store, hash-verified

436/* Helper function.
437 * Given node idx `node` and `arc`, returns the idx of the next arc whose tail is `node`. */
438static struct arc node_adjacency_next(
439 const struct linear_network *linear_network,
440 const struct arc arc)
441{
442 assert(arc.idx < tal_count(linear_network->node_adjacency_next_arc));
443 return linear_network->node_adjacency_next_arc[arc.idx];
444}
445
446static bool channel_is_available(const struct gossmap_chan *c, int dir,
447 const struct gossmap *gossmap,

Callers 4

find_admissible_pathFunction · 0.70
find_optimal_pathFunction · 0.70
zero_flowFunction · 0.70
get_flow_pathsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected