pub trait GraphEdge { type Idx; // Required methods fn src(&self) -> NodeIndex<Self::Idx>; fn target(&self) -> NodeIndex<Self::Idx>; }