Website Summary Files Commits Branches @commit @diff @stats
path: root / Seminar11 / bfs-dfs.cpp
diff options
context:
space:
mode:
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);
}
}
}