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

Function arc_dual

plugins/renepay/mcf.c:376–380  ·  view source on GitHub ↗

Helper function. * Given an arc idx, return the dual's idx in the residual network. */

Source from the content-addressed store, hash-verified

374/* Helper function.
375 * Given an arc idx, return the dual's idx in the residual network. */
376static struct arc arc_dual(struct arc arc)
377{
378 arc.idx ^= (1U << ARC_DUAL_BITOFF);
379 return arc;
380}
381/* Helper function. */
382static bool arc_is_dual(struct arc arc)
383{

Callers 7

get_arc_flowFunction · 0.70
arc_headFunction · 0.70
init_residual_networkFunction · 0.70
init_linear_networkFunction · 0.70
augment_flowFunction · 0.70
zero_flowFunction · 0.70
mainFunction · 0.50

Calls

no outgoing calls

Tested by 1

mainFunction · 0.40