我正在尝试将petgraph::dot::Dot表示形式写入到文件中。下面的小代码示例不能编译:use petgraph::dot::{Dot, Config};use std::io::pretty-print) instead
= note: required because of the requirements on the impl of `std::fmt::Display` for `petgraph::dot::Dot
我想使用petgraph板条箱中的Bellman-Ford算法。下面是一个不能编译的非常简单的示例程序:use petgraph::dot::{Dot, Configfollowing implementations were found:
<&'a petgraph::Graph<N, E, Ty, Ix> as petgraph</
我正在对我的图使用边缘过滤器,并希望更新边权重:use petgraph::graph;
use petgraph::visit::{Dfs, EdgeFilterederror[E0599]: no method named `update_edge` found for struct `EdgeFiltered<&Graph<u32, u32>, for<'r> fn(petgraph^^^^^^^^^^^ metho