Skip to main content

NeighIterable

Trait NeighIterable 

Source
pub trait NeighIterable<G>
where G: Graph,
{ // Required method fn neighbourhoods(&self) -> NeighIterator<'_, G> ; }
Expand description

Allows construction of a NeighIterator.

Has a default implementation for Graph.

Required Methods§

Source

fn neighbourhoods(&self) -> NeighIterator<'_, G>

Returns a NeighIterator for the graph.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<G> NeighIterable<G> for G
where G: Graph,