Skip to main content

HyperedgeParticipantCount

Trait HyperedgeParticipantCount 

Source
pub trait HyperedgeParticipantCount: RelationIncidenceCount {
    // Provided method
    fn hyperedge_participant_count(&self, hyperedge: Self::RelationId) -> usize { ... }
}
Expand description

Exact hyperedge-participant count capability.

Hypergraph-facing name for RelationIncidenceCount: a hyperedge’s participant count is its relation’s incidence count. The default body and blanket impl mean any RelationIncidenceCount backend gets this vocabulary name for free, matching the ParticipantCounts/HypergraphCounts pattern; backends implement only the topology count trait once.

Provided Methods§

Source

fn hyperedge_participant_count(&self, hyperedge: Self::RelationId) -> usize

Returns the number of participants attached to hyperedge.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§