pub type EdgeId = EdgeIndex;
边ID,对应原C++的EdgeID = GraphEdge*
同样使用petgraph的EdgeIndex来标识边,提供类型安全的边引用。
EdgeIndex
pub struct EdgeId(/* private fields */);