graph.h (265B)
1 #ifndef GRAPH_H 2 #define GRAPH_H 3 4 #include "stack_u64.h" 5 6 typedef struct { 7 size_t n; 8 stack_u64 *nbrs; 9 } graph_t; 10 11 void graph_init(graph_t *g, const size_t n); 12 void graph_clear(graph_t *g); 13 void graph_add_edge(graph_t *g, const size_t v, const size_t w); 14 15 #endif