pub fn connectivity_for(
store: &Store,
id: &EntityId,
incoming_counts: impl Fn(&InEdge) -> bool,
) -> ConnectivityExpand 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.