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

Function arc_enabled

plugins/askrene/child/graph.h:101–104  ·  view source on GitHub ↗

We use an arc array but not all arcs in that array do exist in the graph. */

Source from the content-addressed store, hash-verified

99
100/* We use an arc array but not all arcs in that array do exist in the graph. */
101static inline bool arc_enabled(const struct graph *graph, const struct arc arc)
102{
103 return graph->arc_tail[arc.idx].idx < graph->max_num_nodes;
104}
105
106/* Used to loop over the arcs that exit a node.
107 *

Callers 3

mcf_refinementFunction · 0.85
get_median_ratioFunction · 0.85
combine_cost_functionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected