Any interest in a new, lightweight, Rust-based, parallel, deterministic Leiden library?

Abierto
#4,564 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
numpy, rust

Línea de trabajo

This is an open design proposal rather than a concrete implementation task, and no specific files, tests, or entry points are named. Start by reading the related issues #4441, #4110, #4170, and #4499, then review the proposed Rust library’s API, algorithm tradeoffs, licensing, and benchmark approach. A maintainer decision on whether to proceed, along with an agreed scope and ownership, is needed before implementation can begin.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

I noticed there have been several issues about this recently: #4441, #4110, #4170, and possibly others, and additional features such as #4499.

Over the last couple months, my AI agents and I have been exploring creating a narrow, lightweight (only depends on numpy) Rust-based library to implement Louvain and Leiden algorithms (including CPM). Notably, these are fast, parallel, and deterministic (by default) regardless of the number of cores or the random seed (whereas other libraries typically require a single thread and a seed to get determinism).

I haven't been in a rush to share this, but, well, I guess I shouldn't be stingy either ;). So, would there be interest in this? Put simply, the goal of the library is to "just work", have sane defaults, be lightweight, and be permissively-licensed. There are a surprising number of subtle tradeoffs when designing Louvain/Leiden solvers, not least of which is that modularity is a crappy "goodness" metric, so I'd be happy to have others (and your agents) get involved including sharing or taking ownership.

Performance-wise, I'd consider two cases: single-threaded, and multi-threaded. In my benchmarks, the library is typically the fastest (including faster than igraph for moderately-size graphs, but igraph can be faster for small graphs--it's a solid implementation). For multi-threaded, gains typically plateau by 8 active cores for me (a property of determinism), and typically matches or is a bit (such as 1.7x) slower than NetworKit (a very impressive multi-threaded implementation).

Lenguaje dominante
Python
Estrellas
2.6k
Forks
809
Merge medio
1 d 1 h
PR fusionados (30 d)
79

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de scverse/scanpy

Todos los issues de scverse/scanpy

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.