Networkx, Graph, Network Analysis, Twitter, Ml So Good.
communities with a minimum of authors counter=0 centers = {} communities = {} G_main_com = retweets_new.copy() min_nb = 500 for com in set(partition.values()) : list_nodes = [nodes for nodes in partition.keys() if partition[nodes] == com] if len(list_nodes) < min_nb: