Networkx, Graph, Network Analysis, Twitter, Ml So Good.
community.best_partition(retweets_new) size = float(len(set(partition.values()))) pos = nx.spring_layout(retweets_new) count = 0. for com in set(partition.values()) : count = count + 1. list_nodes = [nodes for nodes in partition.keys() if partition[nodes] == com]