diff --git a/libs/grafo.c b/libs/grafo.c index 4aa6f1c6109798f5309b3cb149bac64e5d0bd747..6fb99f12f1c39fb50e4e5d0c9461c77212d222f3 100644 --- a/libs/grafo.c +++ b/libs/grafo.c @@ -4,10 +4,6 @@ #include "vertice.h" #include "tabuleiro.h" -struct Grafo { - Lista vertices; -}; - Grafo criaGrafo() { Grafo g = malloc(sizeof(struct Grafo)); diff --git a/libs/grafo.h b/libs/grafo.h index 5e2d9e54810eefcb51b7efbcb9434fd745da8d27..aef7000b56610b4f0c198f7944bed8ec5a4f8fc8 100644 --- a/libs/grafo.h +++ b/libs/grafo.h @@ -2,6 +2,10 @@ #define _GRAFO_ #include "tabuleiro.h" +struct Grafo { + Lista vertices; +}; + typedef struct Grafo *Grafo; Grafo criaGrafo();