vtraag / leidenalg

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

Weights for Leiden Algorithm #92

Closed Alex-Mathai-98 closed 2 years ago

Alex-Mathai-98 commented 2 years ago

Hey @vtraag :

Just a small question here. I see a possible argument weights that can be fed to the leiden function in cdlib.

But in the documentation : https://cdlib.readthedocs.io/en/latest/reference/cd_algorithms/algs/cdlib.algorithms.leiden.html#cdlib.algorithms.leiden

I see that Supported Graph Types does not include weighted graph.

What do both of these mean ? Is this contradictory ?

vtraag commented 2 years ago

Thanks for reporting this @Alex-Mathai-98 ! It seems that the information is incorrect in the cdlib library, I would suggest opening an issue in https://github.com/GiulioRossetti/cdlib/issues. The leidenalg library supports both directed and weighted graphs.