def get_clusterings(self): clusterings = nx.clustering(self.G) max_clustering = max(clusterings.values()) return clusterings, max_clustering