summaryrefslogtreecommitdiff
path: root/src/03/graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/03/graph.c')
-rw-r--r--src/03/graph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/03/graph.c b/src/03/graph.c
index db76be1..885a8ea 100644
--- a/src/03/graph.c
+++ b/src/03/graph.c
@@ -25,6 +25,6 @@ void graph_add_edge(Graph *graph, Vertex *a, Vertex *b) {
graph->edges[a->label][b->label] = true;
}
-bool graph_connected(Graph *graph, Vertex *a, Vertex *b) {
- return true;
+bool graph_has_edge(Graph *graph, Vertex *a, Vertex *b) {
+ return graph->edges[a->label][b->label];
}