The cluster_leiden() documentation does not have the formula for the objective function. What is being maximized using CPM and modularity, respectively?
Additionally, since CPM is the default, the docs should provide guidance on how to get good results with CPM, i.e. how to set the resolution. The default value of 1 does not usually lead to good results. As a result, it's almost guaranteed that the results will not be good if using the default settings (a simple cluster_leiden(g) call). In my mind, this makes CPM a bad default choice unless it is accompanied by an appropriate default for resolution as well—but this is for @vtraag to decide. I expect that most users won't even read the documentation, and instead will just try the defaults.
The
cluster_leiden()documentation does not have the formula for the objective function. What is being maximized usingCPMandmodularity, respectively?Additionally, since
CPMis the default, the docs should provide guidance on how to get good results with CPM, i.e. how to set theresolution. The default value of 1 does not usually lead to good results. As a result, it's almost guaranteed that the results will not be good if using the default settings (a simplecluster_leiden(g)call). In my mind, this makes CPM a bad default choice unless it is accompanied by an appropriate default forresolutionas well—but this is for @vtraag to decide. I expect that most users won't even read the documentation, and instead will just try the defaults.