pub fn community_count(communities: &FxHashMap<NodeId, u64>) -> usize
Returns the number of communities detected.