Skip to content

Commit

Permalink
Update graph.md
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros authored Jan 22, 2024
1 parent 6209a8a commit 66a6e1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorial/graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ std::vector<T> dfs = g.dfs();
### **BFS**:
```cpp
#include <algoplus/graph>
graph<int> g("directed);
graph<int> g("directed");
g.add_edge(1, 2);
g.add_edge(4, 5);
g.add_edge(5 , 6);
Expand All @@ -53,7 +53,7 @@ std::vector<T> bfs = g.bfs();
### **connected_components**:
```cpp
#include <algoplus/graph>
graph<char> g("undirected);
graph<char> g("undirected");
g.add_edge('a', 'b');
g.add_edge('b','c');
g.add_edge('g','h');
Expand Down

0 comments on commit 66a6e1e

Please sign in to comment.