Skip to main content

connectivity_for

Function connectivity_for 

Source
pub fn connectivity_for(
    store: &Store,
    id: &EntityId,
    incoming_counts: impl Fn(&InEdge) -> bool,
) -> Connectivity
Expand description

Compute one entity’s raw and typed degree. incoming_counts decides which incoming edges contribute (e.g. source-in-mem scoping for a mem-filtered health view); every outgoing edge always counts. Typed degree excludes EdgeSource::BodyLink (auto-emitted mention) edges.