| 16 | #define CHECK(arg) if(!(arg)){fprintf(stderr, "failed CHECK at line %d: %s\n", __LINE__, #arg); abort();} |
| 17 | |
| 18 | static void show(struct graph *graph, struct node node) |
| 19 | { |
| 20 | printf("Showing node %" PRIu32 "\n", node.idx); |
| 21 | for (struct arc arc = node_adjacency_begin(graph, node); |
| 22 | !node_adjacency_end(arc); arc = node_adjacency_next(graph, arc)) { |
| 23 | printf("arc id: %" PRIu32 ", (%" PRIu32 " -> %" PRIu32 ")\n", |
| 24 | arc.idx, arc_tail(graph, arc).idx, |
| 25 | arc_head(graph, arc).idx); |
| 26 | } |
| 27 | printf("\n"); |
| 28 | } |
| 29 | |
| 30 | int main(int argc, char *argv[]) |
| 31 | { |
no test coverage detected