How to define exact number of communities in a igraph object,?
I’m working on a group of individuals over a year of behavioural observation. The group is subdivided in subgroups. The subgroup compositions are changing over time, thus I created a loop to calculate monthly social network. I’m using the funciton cluster_edge_betweenness to get the subgroups. I get that $membership gives the communities with optimal modularity dy default, but I’d like to limit the number of communities to 2. How could I do that ?
How to cut exact number of communities in a igraph object, and exctract the members of each community?
I’m working on a group of individuals over a year of behavioural observation. The group is subdivided in subgroups. The subgroup compositions are changing over time, thus I created a loop to calculate monthly social network. I’m using the funciton cluster_edge_betweenness to get the subgroups. I get that $membership gives the communities with optimal modularity dy default, but I’d like to limit the number of communities to 2. How could I do that ?
How to cut exact number of communities in a igraph object, and exctract the members of each community?
I’m working on a group of individuals over a year of behavioural observation. The group is subdivided in subgroups. The subgroup compositions are changing over time, thus I created a loop to calculate monthly social network. I’m using the funciton cluster_edge_betweenness to get the subgroups. I get that $membership gives the communities with optimal modularity dy default, but I’d like to limit the number of communities to 2. How could I do that ?