News for hackers. Stuff that matters.

Show HN: PyGraphina – A Graph Library for Python

Hi everyone,

I've made an early version of a new graph data science and analytics library for Python named PyGraphina. It's written in Rust and at the moment includes implementations for a large collection of popular graph algorithms, including:

- Centrality metrics: PageRank, betweenness centrality, etc.

- Community detection algorithms like connected components, Louvain, etc.

- Heuristics for hard graph algorithms, such as Max clique finding.

- Link prediction algorithms like Jaccard coefficients, Adamic-Adar index, etc.

The aim of the project is to make PyGraphina as feature-rich as NetworkX, with the performance benefits of Rust.

Project's GitHub repo: https://github.com/habedi/graphina/tree/main/pygraphina

PyGraphina's documentation: https://habedi.github.io/graphina/python

( 2 comments | on HN )
Re:Show HN: PyGraphina – A Graph Library for Python by jtbaker on Monday December 08, 2025 @10:51AM (#46193702)
Could you contrast this project with https://github.com/Qiskit/rustworkx?
Re:Show HN: PyGraphina – A Graph Library for Python by habedi0 on Monday December 08, 2025 @11:42AM (#46194450)
`rustworkx` is older and much more mature than PyGraphina. So at the moment, it includes a larger collection of graph algorithms. But the goal is to keep PyGraphina focused on specific applications like community detection and link prediction with a high-level API like NetworkX.