Skip to main content

VertexIncidences

Trait VertexIncidences 

Source
pub trait VertexIncidences: ElementIncidences {
    type ParticipantIds<'view>: Iterator<Item = ParticipantId<Self>>
       where Self: 'view;

    // Required method
    fn vertex_incidences(
        &self,
        vertex: VertexId<Self>,
    ) -> Self::ParticipantIds<'_>;
}
Expand description

Capability for traversing participant records attached to one vertex.

Hypergraph-facing name for ElementIncidences; yields raw participant IDs rather than resolved hyperedges. Pair with IncidentHyperedges when callers want hyperedges directly.

Required Associated Types§

Source

type ParticipantIds<'view>: Iterator<Item = ParticipantId<Self>> where Self: 'view

Iterator over participant IDs attached to one vertex.

Required Methods§

Source

fn vertex_incidences(&self, vertex: VertexId<Self>) -> Self::ParticipantIds<'_>

Returns participant IDs attached to vertex.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T> VertexIncidences for T

Source§

type ParticipantIds<'view> = <T as ElementIncidences>::Incidences<'view> where T: 'view