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

Function show

plugins/askrene/test/run-dijkstra.c:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#define CHECK(arg) if(!(arg)){fprintf(stderr, "failed CHECK at line %d: %s\n", __LINE__, #arg); abort();}
27
28static void show(struct graph *graph, struct node node)
29{
30 printf("Showing node %" PRIu32 "\n", node.idx);
31 for (struct arc arc = node_adjacency_begin(graph, node);
32 !node_adjacency_end(arc); arc = node_adjacency_next(graph, arc)) {
33 printf("arc id: %" PRIu32 ", (%" PRIu32 " -> %" PRIu32 ")\n",
34 arc.idx, arc_tail(graph, arc).idx,
35 arc_head(graph, arc).idx);
36 }
37 printf("\n");
38}
39
40int main(int argc, char *argv[])
41{

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