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

Function arc_tail

plugins/renepay/mcf.c:402–407  ·  view source on GitHub ↗

Helper function. * Given an arc idx, return the node from which this arc emanates in the residual network. */

Source from the content-addressed store, hash-verified

400/* Helper function.
401 * Given an arc idx, return the node from which this arc emanates in the residual network. */
402static u32 arc_tail(const struct linear_network *linear_network,
403 const struct arc arc)
404{
405 assert(arc.idx < tal_count(linear_network->arc_tail_node));
406 return linear_network->arc_tail_node[ arc.idx ];
407}
408/* Helper function.
409 * Given an arc idx, return the node that this arc is pointing to in the residual network. */
410static u32 arc_head(const struct linear_network *linear_network,

Callers 3

combine_cost_functionFunction · 0.70
get_augmenting_flowFunction · 0.70
augment_flowFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected