summaryrefslogtreecommitdiff
path: root/lib/graph.h
blob: 9c80dd6456304b65271cdccfbec8c8cd79cbe5ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

#include <inttypes.h>
#include <math.h>
#include <stdlib.h>

#include "types.h"

typedef struct {
  v_t ne;
  v_t nv;
  v_t *v_i;
  v_t *v_adj;
} graph_t;

graph_t *graph_create_square(D_t D, L_t L);

graph_t *graph_add_ext(const graph_t *G);

void graph_free(graph_t *h);