'How to plot only bigger communities with Igraph package in Python?

I am new in the networks world and I need help with the python package Igraph. I created my network and I applied community_walktrap() for the clustering. Now, I would like to plot just the clusters with more than 10 elements. Do you know how I can do this? To plot everything, I am using:

ig.plot(clusters, mark_groups = True, bbox=(1000,1000), vertex_label=g.vs['name'])

But I do not know if there is a way to exclude the smaller clusters.

Thank you in advace!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source