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 struct shortcut1_graphr shortcut1_graphr = {
82 AGAR_INIT_GRAPH(shortcut1_first_edge_r,
83 shortcut1_next_edge_r,
84 shortcut1_edge_info_r),