5 #include <ccan/agar/agar.h>
6 #include <ccan/container_of/container_of.h>
7 #include <ccan/ptrint/ptrint.h>
9 #include "simple-graphr.h"
11 static const void *error_first_edge_r(const struct agar_graph *gr,
17 static const void *error_next_edge_r(const struct agar_graph *gr,
18 const void *nr, const void *e)
20 assert(ptr2int(e) == 1);
25 static int error_edge_info_r(const struct agar_graph *gr,
26 const void *nr, const void *e,
27 struct agar_edge_info *eir)
29 int fromindex = ptr2int(nr);
51 struct error_graphr error_graphr = {
52 AGAR_INIT_GRAPH(error_first_edge_r, error_next_edge_r,