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

Function arc_dual

plugins/askrene/child/graph.h:71–75  ·  view source on GitHub ↗

Give me the dual of an arc. */

Source from the content-addressed store, hash-verified

69
70/* Give me the dual of an arc. */
71static inline struct arc arc_dual(const struct graph *graph, struct arc arc)
72{
73 arc.idx ^= (1U << graph->arc_dual_bit);
74 return arc;
75}
76
77/* Is this arc a dual? */
78static inline bool arc_is_dual(const struct graph *graph, struct arc arc)

Callers 11

sendflowFunction · 0.70
node_balanceFunction · 0.70
flow_costFunction · 0.70
get_arc_flowFunction · 0.70
combine_cost_functionFunction · 0.70
init_linear_networkFunction · 0.70
graph_add_arcFunction · 0.70
arc_headFunction · 0.70
node_rev_adjacency_beginFunction · 0.70
node_rev_adjacency_nextFunction · 0.70
solve_caseFunction · 0.50

Calls

no outgoing calls

Tested by 1

solve_caseFunction · 0.40