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

Function arc_tail

plugins/askrene/child/graph.h:84–89  ·  view source on GitHub ↗

Give me the node at the tail of an arc. */

Source from the content-addressed store, hash-verified

82
83/* Give me the node at the tail of an arc. */
84static inline struct node arc_tail(const struct graph *graph,
85 const struct arc arc)
86{
87 assert(arc.idx < graph_max_num_arcs(graph));
88 return graph->arc_tail[arc.idx];
89}
90
91/* Give me the node at the head of an arc. */
92static inline struct node arc_head(const struct graph *graph,

Callers 11

get_augmenting_flowFunction · 0.70
sendflowFunction · 0.70
augment_flowFunction · 0.70
reduced_costFunction · 0.70
dijkstra_nearest_sinkFunction · 0.70
get_flow_singlepathFunction · 0.70
showFunction · 0.50
mainFunction · 0.50
showFunction · 0.50
mainFunction · 0.50
showFunction · 0.50

Calls 1

graph_max_num_arcsFunction · 0.85

Tested by 5

showFunction · 0.40
mainFunction · 0.40
showFunction · 0.40
mainFunction · 0.40
showFunction · 0.40