diff options
fix typos
1 files changed, 3 insertions, 3 deletions
| -rw-r--r-- | Seminar11/bfs-dfs.cpp | 6 |
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); } } } |
