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

#pragma once

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