pub trait Neighbors: Sized {
type Iter<'a>: 'a + Iterator<Item = Internode<Self>>
where Self: 'a;
// Required methods
fn outgoing(&self) -> Self::Iter<'_>;
fn incoming(&self) -> Self::Iter<'_>;
}
Expand description
Defines neighbors of a node.