pub trait EdgeType { fn is_directed() -> bool; }
A graph’s edge type determines whether it has directed edges or not.