Skip to main content

HyperedgeIncidences

Trait HyperedgeIncidences 

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

    // Required method
    fn hyperedge_incidences(
        &self,
        hyperedge: HyperedgeId<Self>,
    ) -> Self::ParticipantIds<'_>;
}
Expand description

Capability for traversing participant records attached to one hyperedge.

Hypergraph-facing name for RelationIncidences; yields raw participant IDs rather than resolved vertices. Pair with HyperedgeParticipants when callers want vertices directly.

Required Associated Types§

Source

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

Iterator over participant IDs attached to one hyperedge.

Required Methods§

Source

fn hyperedge_incidences( &self, hyperedge: HyperedgeId<Self>, ) -> Self::ParticipantIds<'_>

Returns participant IDs attached to hyperedge.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T> HyperedgeIncidences for T

Source§

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