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

未关闭
#4,564 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
活跃
技术栈
numpy, rust

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Python
星标
2.6k
派生
809
平均合并
1 天 1 小时
30 天内合并 PR
79

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

scverse/scanpy 的其他 Issue

查看 scverse/scanpy 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。