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

Aperta
#4,564 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
numpy, rust

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
Python
Stelle
2.6k
Fork
809
Merge medio
1g 1h
PR unite (30g)
79

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di scverse/scanpy

Tutte le issue di scverse/scanpy

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.