$npx skillfedfor your agent

rustworkx

A High-Performance Graph Library for Python

Worth itPyPI MathematicsReleased Jul 20268.0M downloads / moApache-2.0Platform wheel

Decision gist · record as of 2026-08-14

platform wheels — rustworkx-0.18.1-cp310-abi3-macosx_10_12_x86_64.whl · rustworkx-0.18.1-cp310-abi3-macosx_11_0_arm64.whl · rustworkx-0.18.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
v0.18.1 · released 2026-07-30 · Python >=3.10 · 1 runtime deps: numpy

Yes. rustworkx is actively maintained, has no known vulnerabilities, and offers a permissive Apache-2.0 license. Install friction is moderate but manageable for common platforms thanks to precompiled wheels. It is worth installing if you need fast graph operations and can work with Python 3.10+; avoid it only if you are locked to older Python versions or a platform without precompiled binaries and cannot install Rust.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >= 3.10.
  • On platforms without precompiled binaries, building from source requires Rust >= 1.85 and cargo installed.
  • Medium install friction due to compiled Rust binaries, but precompiled wheels are available for common platforms (x86_64, aarch64, ppc64le, s390x Linux; x86_64 macOS; 32/64-bit Windows).

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; attribution and license notice required.

last release 2026-07-30 (15 days) · last repo commit 2026-08-07 · 1,738 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,974,860 downloads/mo, #1,676 on PyPI

Verify before relying

pip install rustworkx
import rustworkx
graph = rustworkx.PyGraph()
a = graph.add_node("A")
b = graph.add_node("B")
graph.add_edges_from([(a, b, 1.5)])
rustworkx.dijkstra_shortest_paths(graph, a, b, weight_fn=float)
  • Whether visualization modules (mpl_draw, graphviz_drawer) are production-ready or experimental
  • Performance benchmarks compared to NetworkX or other Python graph libraries
  • API stability guarantees or deprecation policy across minor versions
Same gist for agents: .md · .json

What it is and what it does

rustworkx is a graph library that wraps Rust graph algorithms in a Python interface, letting you build and analyze graphs—directed, undirected, weighted, or multigraphs—without leaving Python. It exposes graph types like PyGraph and PyDiGraph, plus algorithm functions like dijkstra_shortest_paths, all importable from a single module. The library runs on modern Python (3.10+) and comes with precompiled wheels for most platforms, so installation is typically a single pip command.

The package is designed for applications that need both ease of use and speed: it originated as a replacement for NetworkX in Qiskit's transpiler DAG but has grown into a general-purpose tool. You construct graphs by adding nodes and edges, then call algorithm functions to compute paths, detect cycles, or traverse the graph. Optional dependencies (matplotlib, graphviz, pillow) unlock visualization functions. It has no known vulnerabilities and is actively maintained.

Use it for

  • Build and analyze directed acyclic graphs (DAGs) for compiler or workflow optimization tasks
  • Compute shortest paths and other graph algorithms on large networks where performance matters
  • Construct knowledge graphs or dependency networks for scientific computing or data analysis
  • Implement graph-based algorithms in quantum computing or circuit simulation workflows
  • Visualize graph structures using matplotlib or graphviz renderers for debugging or reporting

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

rustworkx is actively maintained, has no known vulnerabilities, and offers a permissive Apache-2.0 license. Install friction is moderate but manageable for common platforms thanks to precompiled wheels. It is worth installing if you need fast graph operations and can work with Python 3.10+; avoid it only if you are locked to older Python versions or a platform without precompiled binaries and cannot install Rust.

Install

rustworkx on PyPI

Before you install

Medium install friction due to compiled Rust binaries, but precompiled wheels are available for common platforms (x86_64, aarch64, ppc64le, s390x Linux; x86_64 macOS; 32/64-bit Windows). Building from source requires Rust >= 1.85 and maturin >= 1.9. Active maintenance with a release 15 days ago.

Requires Python >= 3.10. On platforms without precompiled binaries, building from source requires Rust >= 1.85 and cargo installed.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; attribution and license notice required.

Quickstart

pip install rustworkx
import rustworkx
graph = rustworkx.PyGraph()
a = graph.add_node("A")
b = graph.add_node("B")
graph.add_edges_from([(a, b, 1.5)])
rustworkx.dijkstra_shortest_paths(graph, a, b, weight_fn=float)

Verify before relying

  • Whether visualization modules (mpl_draw, graphviz_drawer) are production-ready or experimental
  • Performance benchmarks compared to NetworkX or other Python graph libraries
  • API stability guarantees or deprecation policy across minor versions

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionMedium. Platform-specific wheel
Runtime dependencies
1 package
numpy
MaintenanceActively maintained 15 days since the last release
Last repo commit
First released
Downloads7,974,860 / month, #1,676 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersIntended Audience :: Science/ResearchOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Rust

Evidence: rustworkx-0.18.1-cp310-abi3-macosx_10_12_x86_64.whl; rustworkx-0.18.1-cp310-abi3-macosx_11_0_arm64.whl; rustworkx-0.18.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; rustworkx-0.18.1-cp310-abi3-manylinux_2_28_aarch64.whl; rustworkx-0.18.1-cp310-abi3-manylinux_2_28_ppc64le.whl; rustworkx-0.18.1-cp310-abi3-manylinux_2_28_s390x.whl; rustworkx-0.18.1-cp310-abi3-musllinux_1_2_aarch64.whl; rustworkx-0.18.1-cp310-abi3-musllinux_1_2_x86_64.whl; rustworkx-0.18.1-cp310-abi3-pyemscripten_2026_0_wasm32.whl; rustworkx-0.18.1-cp310-abi3-win32.whl; rustworkx-0.18.1-cp310-abi3-win_amd64.whl; rustworkx-0.18.1-cp314-cp314t-macosx_10_15_x86_64.whl; rustworkx-0.18.1-cp314-cp314t-macosx_11_0_arm64.whl; rustworkx-0.18.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; rustworkx-0.18.1-cp314-cp314t-manylinux_2_28_aarch64.whl; rustworkx-0.18.1-cp314-cp314t-manylinux_2_28_ppc64le.whl; rustworkx-0.18.1-cp314-cp314t-musllinux_1_2_aarch64.whl; rustworkx-0.18.1-cp314-cp314t-musllinux_1_2_x86_64.whl

Tags

Capabilities
graph library pythonnetwork algorithmsdirected acyclic graphshortest path algorithmgraph traversalhigh-performance graphDAG implementation
Topics
graph-algorithmsrust-backedperformance-critical
PyPI keywords
NetworksNetworkGraphGraph TheoryDAG

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “DAG implementation”

  • rustworkxA high-performance graph library for Python, written in Rust,…
  • bigtreeBigtree provides tree, binary tree, and directed acyclic graph (DAG)…
  • dag-factorydag-factory builds Apache Airflow DAGs declaratively from YAML…

Give your agent the search over MCP, or paste the wish link into any chat.

More Mathematics packages

networkx Worth it
PyPI · Python Modules · released Dec 2025

NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.

BSD-3-Clausepure Python
290.9Mdownloads / mo
kiwisolver Worth it
PyPI · Mathematics · released Mar 2026

kiwisolver is a Python binding to a fast C++ implementation of the Cassowary constraint solver, enabling you to solve systems of linear constraints and inequalities.

Install it if you need to solve constraint systems; skip it if you only need simple linear algebra.

BSD-3-Clausecompiled wheel · 3.10+
205.5Mdownloads / mo
sympy Worth it
PyPI · Scientific/Engineering · released Apr 2025

SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.

BSD-3-Clausepure Python · 3.9+
196.4Mdownloads / mo
contourpy Worth it
PyPI · Information Analysis · released Jul 2025

ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.

BSD-3-Clausecompiled wheel · 3.11+
191.2Mdownloads / mo
torch With conditions
PyPI · Software Development · released Jul 2026

PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.

Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND MITcompiled wheel · 3.10+
102.5Mdownloads / mo
onnxruntime Worth it
PyPI · Software Development · released Jul 2026

onnxruntime loads and executes Open Neural Network Exchange (ONNX) models with a focus on inference performance across CPUs and accelerators.

Install it if you have ONNX models to run in production or development.

MITcompiled wheel · 3.11+
89.3Mdownloads / mo

See also retworkx · kailash-enterprise · altgraph · graspologic-native · pybigtools · moviepilot-rust · chalkpy-rs · advent-of-code · setuptools-rust