Cohesive#

count_number_of_cohesive_groups_brute(election, feature_params: dict)[source]#

Count the number of cohesive groups of size at least l in the election, using Brute Force.

powerset([1,2,3]) --> () (1,) (2,) (3,) (1,2) (1,3) (2,3) (1,2,3)[source]#