vtraag / leidenalg

Implementation of the Leiden algorithm for various quality functions to be used with igraph in Python.
GNU General Public License v3.0
606 stars 78 forks source link

specific number of nodes in a cluster #96

Closed Angela446-lgtm closed 2 years ago

Angela446-lgtm commented 2 years ago

Is it possible to make clusters with specific number of nodes? I would like to define the number of nodes in each cluster.

vtraag commented 2 years ago

Hi @Angela446-lgtm, sorry, no this is not possible at the moment. There are two possibly related issues about fixing the number of clusters (#89) and enforcing a minimum community size (#53), perhaps these would also be relevant to your problem? If your problem is different, could you please elaborate? If not, it would probably be better to close this issue and move the conversation to the relevant other open issues.