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 *shortcut2_first_edge_r(const struct agar_graph *gr,
30 static const void *shortcut2_next_edge_r(const struct agar_graph *gr,
31 const void *nr, const void *e)
34 int index = ptr2int(e);
52 static int shortcut2_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);
82 struct shortcut2_graphr shortcut2_graphr = {
83 AGAR_INIT_GRAPH(shortcut2_first_edge_r,
84 shortcut2_next_edge_r,
85 shortcut2_edge_info_r),