HyperGraphIterEdge

Trait HyperGraphIterEdge 

Source
pub trait HyperGraphIterEdge<N, E, A>: HyperGraph<N, E, A>
where A: GraphProps,
{ type Surfaces<'a>: Iterator<Item = (&'a EdgeId<A::Ix>, &'a Self::Edge<E>)> where Self: 'a, <Self as RawHyperGraph<A>>::Edge<E>: 'a; type Edges<'a>: Iterator<Item = &'a EdgeId<A::Ix>> where Self: 'a; // Required methods fn iter_surfaces(&self) -> Self::Surfaces<'_>; fn edges(&self) -> Self::Edges<'_>; }
Expand description

The HyperGraphIterEdge trait extends the HyperGraph trait to provide iterators over the edges in the hypergraph.

Required Associated Types§

Source

type Surfaces<'a>: Iterator<Item = (&'a EdgeId<A::Ix>, &'a Self::Edge<E>)> where Self: 'a, <Self as RawHyperGraph<A>>::Edge<E>: 'a

Source

type Edges<'a>: Iterator<Item = &'a EdgeId<A::Ix>> where Self: 'a

Required Methods§

Source

fn iter_surfaces(&self) -> Self::Surfaces<'_>

returns an iterator over the edges of the graph

Source

fn edges(&self) -> Self::Edges<'_>

returns an iterator over the indices of the edges within the graph

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§