| 26 | #define CHECK(arg) if(!(arg)){fprintf(stderr, "failed CHECK at line %d: %s\n", __LINE__, #arg); abort();} |
| 27 | |
| 28 | static 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 | |
| 40 | int main(int argc, char *argv[]) |
| 41 | { |
no test coverage detected