fix: update the code comment (#386)

Co-authored-by: steak-zhuo <zhuoqinyue@gmail.com>
This commit is contained in:
zhuoqinyue
2023-02-25 11:16:41 -06:00
committed by GitHub
parent e500b19f5a
commit 037aaeeaa2
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ public class graph_dfs {
System.out.println("\n初始化后图为");
graph.print();
/* 深度优先遍历 BFS */
/* 深度优先遍历 DFS */
List<Vertex> res = graphDFS(graph, v[0]);
System.out.println("\n深度优先遍历DFS顶点序列为");
System.out.println(Vertex.vetsToVals(res));