diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-02-02 18:33:22 -0500 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-02-02 18:33:22 -0500 |
commit | 2af9351db3aa97da9b0d3f23d53a593bc96c8a8e (patch) | |
tree | 684dfccba8d295c42ef6e2e070c8d6caca45f590 /lib/graph.h | |
parent | 181db84a8ffb26e436a43bb268fe5ef060206e66 (diff) | |
download | c++-2af9351db3aa97da9b0d3f23d53a593bc96c8a8e.tar.gz c++-2af9351db3aa97da9b0d3f23d53a593bc96c8a8e.tar.bz2 c++-2af9351db3aa97da9b0d3f23d53a593bc96c8a8e.zip |
does potts now, no external libraries
Diffstat (limited to 'lib/graph.h')
-rw-r--r-- | lib/graph.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/graph.h b/lib/graph.h new file mode 100644 index 0000000..eda7630 --- /dev/null +++ b/lib/graph.h @@ -0,0 +1,18 @@ + +#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); + |