Skip to content

Commit

Permalink
fix: update the code comment (krahets#386)
Browse files Browse the repository at this point in the history
Co-authored-by: steak-zhuo <[email protected]>
  • Loading branch information
zhuoqinyue and steak-zhuo authored Feb 25, 2023
1 parent e500b19 commit 037aaee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codes/java/chapter_graph/graph_dfs.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static void main(String[] args) {
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));
Expand Down
2 changes: 1 addition & 1 deletion codes/python/chapter_graph/graph_dfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def graph_dfs(graph: GraphAdjList, start_vet: Vertex) -> List[Vertex]:
print("\n初始化后,图为")
graph.print()

# 深度优先遍历 BFS
# 深度优先遍历 DFS
res = graph_dfs(graph, v[0])
print("\n深度优先遍历(DFS)顶点序列为")
print(vets_to_vals(res))

0 comments on commit 037aaee

Please sign in to comment.