leidenalg
Implementation of the Leiden algorithm for various methods for use with igraph in python.
Implementation of the Leiden algorithm for various methods for use with igraph in python.
To install this package, run one of the following:
This package implements the Leiden algorithm in C++ and exposes it to python. It relies on (python-)igraph for it to function. Besides the relative flexibility of the implementation, it also scales well, and can be run on graphs of millions of nodes (as long as they can fit in memory). The core function is find_partition which is able to optimize a variety of quality functions using the Leiden algorithm.
Summary
Implementation of the Leiden algorithm for various methods for use with igraph in python.
Last Updated
Oct 31, 2025 at 20:54
License
GPL-3.0-or-later
Total Downloads
718.8K
Supported Platforms
GitHub Repository
https://github.com/vtraag/leidenalgDocumentation
http://leidenalg.readthedocs.io/