mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-13 07:46:06 +00:00
Finetune Rust code.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,4 +66,4 @@ fn main() {
|
||||
let res = graph_bfs(graph, v[0]);
|
||||
println!("\n广度优先遍历(BFS)顶点序列为");
|
||||
println!("{:?}", vets_to_vals(res));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,4 +58,4 @@ fn main() {
|
||||
let res = graph_dfs(graph, v[0]);
|
||||
println!("\n深度优先遍历(DFS)顶点序列为");
|
||||
println!("{:?}", vets_to_vals(res));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user