leidenalg

Community

Implementation of the Leiden algorithm for various methods for use with igraph in python.

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::leidenalg

Frequently installed with leidenalg

89% of users use this for data processing

scanpy

73% of users use this for bioinformatics

anndata

62% of users use this for bioinformatics

Try This Package Beta

Usage Tracking

0.12.0
0.11.0
0.10.2
0.10.1
0.10.0
5 / 8 versions selected
Downloads (Last 6 months): 0

Description

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.

About

Summary

Implementation of the Leiden algorithm for various methods for use with igraph in python.

Last Updated

May 25, 2026 at 05:41

License

GPL-3.0-or-later

Supported Platforms

macOS-64
linux-aarch64
macOS-arm64
linux-ppc64le
linux-64
win-64