5 #include <ccan/container_of/container_of.h>
6 #include <ccan/ptrint/ptrint.h>
8 #include <ccan/agar/agar.h>
10 #include "simple-graphr.h"
12 static const void *shortcut1_first_edge_r(const struct agar_graph *gr,
30 static const void *shortcut1_next_edge_r(const struct agar_graph *gr,
31 const void *nr, const void *e)
34 int index = ptr2int(e);
52 static int shortcut1_edge_info_r(const struct agar_graph *gr,
53 const void *nr, const void *e,
54 struct agar_edge_info *eir)
57 int index = ptr2int(e);
81 void shortcut1_graphr_init(struct shortcut1_graphr *s1gr)
83 agar_init_graph(&s1gr->gr, shortcut1_first_edge_r,
84 shortcut1_next_edge_r,
85 shortcut1_edge_info_r);