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

Function node_adjacency_begin

plugins/renepay/mcf.c:421–427  ·  view source on GitHub ↗

Helper function. * Given node idx `node`, return the idx of the first arc whose tail is `node`. * */

Source from the content-addressed store, hash-verified

419 * Given node idx `node`, return the idx of the first arc whose tail is `node`.
420 * */
421static struct arc node_adjacency_begin(
422 const struct linear_network * linear_network,
423 const u32 node)
424{
425 assert(node < tal_count(linear_network->node_adjacency_first_arc));
426 return linear_network->node_adjacency_first_arc[node];
427}
428
429/* Helper function.
430 * Is this the end of the adjacency list. */

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