Skip to main content

compare_community_snapshots

Function compare_community_snapshots 

Source
pub fn compare_community_snapshots(
    before: &CommunitySnapshot,
    after: &CommunitySnapshot,
) -> CommunityDelta
Expand description

Compares two community snapshots using deterministic member-set overlap.

Jaccard overlap of at least 0.25 establishes a material relationship. One old community related to multiple new communities is a split, while the inverse is a merge. Remaining one-to-one relationships below 0.80 are materially changed; unrelated communities are created or removed.