diff options
| author | mo khan <mo.khan@gmail.com> | 2020-09-07 18:55:03 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-09-07 18:55:03 -0600 |
| commit | 81f845facd2c911846f7bffe1f7ecfebd8039f78 (patch) | |
| tree | 389d76acd6546e18a03ec70daefe5e81bf7daace /src/03/graph.c | |
| parent | 373fbfd822be53d76c861118d5fa60300d223d6b (diff) | |
test: add test to check if vertices are connected
Diffstat (limited to 'src/03/graph.c')
| -rw-r--r-- | src/03/graph.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/03/graph.c b/src/03/graph.c index 1e67202..db76be1 100644 --- a/src/03/graph.c +++ b/src/03/graph.c @@ -24,3 +24,7 @@ Vertex *graph_add_vertex(Graph *graph, char label) { 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; +} |
