pub trait UndirectedGraph<Node: Idx>: Graph<Node> { fn degree(&self, node: Node) -> Node; fn neighbors(&self, node: Node) -> &[Node]; }