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

Function show

plugins/askrene/test/run-graph.c:16–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#define DUAL_BIT 7
15
16static void show(struct graph *graph, struct node node)
17{
18 printf("Showing node %" PRIu32 "\n", node.idx);
19 for (struct arc arc = node_adjacency_begin(graph, node);
20 !node_adjacency_end(arc); arc = node_adjacency_next(graph, arc)) {
21 printf("arc id: %" PRIu32 ", (%" PRIu32 " -> %" PRIu32 ")\n",
22 arc.idx, arc_tail(graph, arc).idx,
23 arc_head(graph, arc).idx);
24 }
25 printf("\n");
26}
27
28int main(int argc, char *argv[])
29{

Callers 1

mainFunction · 0.70

Calls 5

node_adjacency_beginFunction · 0.50
node_adjacency_endFunction · 0.50
node_adjacency_nextFunction · 0.50
arc_tailFunction · 0.50
arc_headFunction · 0.50

Tested by

no test coverage detected