Skip to main content

CommunityId

Type Alias CommunityId 

Source
pub type CommunityId = u32;
Expand description

Opaque integer identifier of a community in a CommunityAssignment.

Assigned canonically: the community containing the node with the smallest NodeId gets CommunityId(0), the next smallest previously-unseen node gets CommunityId(1), and so on. This canonicalisation is what makes content_cid stable under permutations of input edge order.