Finetune Rust code.

This commit is contained in:
krahets
2023-07-26 10:01:49 +08:00
parent 06006c58a2
commit 60162f6fa8
18 changed files with 29 additions and 25 deletions
@@ -139,4 +139,4 @@ fn main() {
graph.remove_vertex(v[1]);
println!("\n删除顶点 3 后,图为");
graph.print();
}
}
@@ -133,4 +133,4 @@ fn main() {
graph.remove_vertex(1);
println!("\n删除顶点 3 后,图为");
graph.print();
}
}
+1 -1
View File
@@ -66,4 +66,4 @@ fn main() {
let res = graph_bfs(graph, v[0]);
println!("\n广度优先遍历(BFS)顶点序列为");
println!("{:?}", vets_to_vals(res));
}
}
+1 -1
View File
@@ -58,4 +58,4 @@ fn main() {
let res = graph_dfs(graph, v[0]);
println!("\n深度优先遍历(DFS)顶点序列为");
println!("{:?}", vets_to_vals(res));
}
}