summaryrefslogtreecommitdiff
path: root/src/03/graph.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/03/graph.h')
-rw-r--r--src/03/graph.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/03/graph.h b/src/03/graph.h
index d295490..95c96d8 100644
--- a/src/03/graph.h
+++ b/src/03/graph.h
@@ -1,10 +1,14 @@
+#include <stdbool.h>
+
typedef struct {
char label;
} Vertex;
typedef struct {
Vertex *vertices[128];
+ bool edges[128][128];
} Graph;
Graph *graph_initialize(void);
Vertex *graph_add_vertex(Graph *graph, char label);
+void graph_add_edge(Graph *graph, Vertex *a, Vertex *b);