6 #include <ccan/container_of/container_of.h>
7 #include <ccan/ptrint/ptrint.h>
9 #include <ccan/agar/agar.h>
11 #include "simple-graphr.h"
13 const void *full_first_edge_r(const struct agar_graph *gr,
19 const void *full_next_edge_r(const struct agar_graph *gr,
20 const void *nr, const void *e)
22 struct full_graphr *fgr = container_of(gr, struct full_graphr, gr);
26 if (ni <= fgr->nnodes)
32 static int full_edge_info_r(const struct agar_graph *gr,
33 const void *nr, const void *edge,
34 struct agar_edge_info *eir)
40 void full_graphr_init(struct full_graphr *fgr, int nnodes)
43 agar_init_graph(&fgr->gr, full_first_edge_r, full_next_edge_r,