From 66a6e1e355a92b32ae5962beb12d04be9dd7e604 Mon Sep 17 00:00:00 2001 From: Spiros Maggioros <51701672+spirosmaggioros@users.noreply.github.com> Date: Mon, 22 Jan 2024 16:35:53 +0200 Subject: [PATCH] Update graph.md --- tutorial/graph.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorial/graph.md b/tutorial/graph.md index 3407c9fd..26574d76 100644 --- a/tutorial/graph.md +++ b/tutorial/graph.md @@ -39,7 +39,7 @@ std::vector dfs = g.dfs(); ### **BFS**: ```cpp #include -graph g("directed); +graph g("directed"); g.add_edge(1, 2); g.add_edge(4, 5); g.add_edge(5 , 6); @@ -53,7 +53,7 @@ std::vector bfs = g.bfs(); ### **connected_components**: ```cpp #include -graph g("undirected); +graph g("undirected"); g.add_edge('a', 'b'); g.add_edge('b','c'); g.add_edge('g','h');