Website Summary Files Commits Branches @commit @diff @stats
path: root / Seminar11 / bfs-dfs.cpp
diff options
context:
space:
mode:
Commit86dbd52947958c8ce263cfc3cb275e79aed6661d (patch)
Author
 Stoycho Kyosev <stoycho.kk@gmail.com>
2022-12-21 18:52:58 +0200
Committer
 Stoycho Kyosev <stoycho.kk@gmail.com>
2022-12-21 18:52:58 +0200
Files48170b3f666ca6611a36e2d542399aeec68504de /Seminar11/bfs-dfs.cpp
Data-structures-and-algorithms-86dbd52947958c8ce263cfc3cb275e79aed6661d.tar
Data-structures-and-algorithms-86dbd52947958c8ce263cfc3cb275e79aed6661d.tar.gz
Data-structures-and-algorithms-86dbd52947958c8ce263cfc3cb275e79aed6661d.zip
Parent750de18faa33ae862a3348a6679f32e1517a3d4b (diff)
fix typos
1 files changed, 3 insertions, 3 deletions
-rw-r--r--Seminar11/bfs-dfs.cpp6
diff --git a/Seminar11/bfs-dfs.cpp b/Seminar11/bfs-dfs.cpp
index a19abcd..19ef1b9 100644
--- a/Seminar11/bfs-dfs.cpp
+++ b/Seminar11/bfs-dfs.cpp
@@ -23,9 +23,9 @@ void BFS(const MatrixGraph& g, MatrixGraph::vertex_t start) {
auto successors = g.getSuccessors(current);
- for(const auto& edge : successors) {
- if(!visited[edge])
- q.push(edge);
+ for(const auto& currentVertex : successors) {
+ if(!visited[currentVertex])
+ q.push(currentVertex);
}
}
}