summaryrefslogtreecommitdiff
path: root/lib/graph.h
blob: beb7f4c82e72dffcc65605b6fd1170108bfee51d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

#pragma once

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

#include "types.h"

#ifdef __cplusplus
extern "C" {
#endif

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);

#ifdef __cplusplus
}
#endif