Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/CSRT-NTUA/AlgoPlus
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Jan 22, 2024
2 parents e9c7105 + 76657bc commit 7f6e2f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tutorial/graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ weighted_graph class algorithms:
- prim
- bipartite
- visualize

There are also some functions for both classes like **has_edge(u, v)** that checks if an edge exists from node u to node v, **size()** that returns the number of elements in the graph, **empty()** that checks if a graph is empty and **empty()** that empties the graph.
### **DFS**:
```cpp
Expand Down Expand Up @@ -142,4 +143,4 @@ g.add_edge("Athens", "Kozani", 100);
// returns the minimum spanning tree starting
// from the node Athens.
std::cout << g.prim("Athens") << '\n';
```
```

0 comments on commit 7f6e2f2

Please sign in to comment.