10 unstable releases (3 breaking)

0.15.1 Jun 28, 2024
0.14.2 Mar 12, 2024
0.13.2 Oct 3, 2023
0.13.1 Jul 31, 2023
0.12.1 Nov 23, 2022

#14 in #graph-theory

Download history 4020/week @ 2024-07-29 2889/week @ 2024-08-05 2751/week @ 2024-08-12 3459/week @ 2024-08-19 2569/week @ 2024-08-26 3199/week @ 2024-09-02 2990/week @ 2024-09-09 2800/week @ 2024-09-16 3173/week @ 2024-09-23 3781/week @ 2024-09-30 3063/week @ 2024-10-07 3109/week @ 2024-10-14 2640/week @ 2024-10-21 3154/week @ 2024-10-28 3552/week @ 2024-11-04 2258/week @ 2024-11-11

11,803 downloads per month
Used in kriss_matcher

Apache-2.0

705KB
14K SLoC

rustworkx-core

License Minimum rustc 1.70

⚠️ The retworkx-core project has been renamed to rustworkx-core. If you're using retworkx-core 0.11.0 you will need to change your requirement and use statements to use the new crate name

rustworkx-core is a graph algorithm library that is built on top of petgraph. It offers additional algorithms and functionality on top of the core data structures offered in the petgraph library.

This crate contains the Rust library rustworkx-core. This library is part of the rustworkx project. However while the larger rustworkx project is a Python library that offers a general purpose high performance graph library written in Rust, rustworkx-core is a pure rust library that offers a stable rust API for any downstream crate that need it.

At it's core rustworkx is built on top of the petgraph library and wraps it in a Python layer. However, many of the algorithms (and to a lesser extent data structures) needed for rustworkx are not available in petgraph. For places where these algorithms are implemented in a generic way the rustworkx-core crate exposes it for Rust users.

Usage

Add this to your Cargo.toml:

[dependencies]
rustworkx-core = "0.11"

Then:

use rustworkx_core;

Note there is a strong version dependency between petgraph and rustworkx-core as the functionality exposed by rustworkx-core is built on top of petgraph. For convenience we re-export petgraph in the root of this crate so you can use petgraph without explicitly needing it at the same exact version in your crate.

License

Just as with the rest of the rustworkx project rustworkx-core is licensed under the Apache License, Version 2.0: https://www.apache.org/licenses/LICENSE-2.0

Dependencies

~7MB
~114K SLoC