• Home
Name Date Size #Lines LOC

..--

assets/04-Jul-2025-147143

benches/04-Jul-2025-1,4701,195

src/04-Jul-2025-19,75713,898

tests/04-Jul-2025-8,8497,818

.android-checksum.jsonD04-Jul-20259.6 KiB11

.cargo-checksum.jsonD04-Jul-20259.2 KiB11

Android.bpD04-Jul-20251 KiB4238

CONTRIBUTING.rstD04-Jul-20253.4 KiB13080

Cargo.tomlD04-Jul-20252.2 KiB126105

LICENSED04-Jul-202510.6 KiB202169

LICENSE-APACHED04-Jul-202510.6 KiB202169

METADATAD04-Jul-2025411 1817

MODULE_LICENSE_APACHE2D04-Jul-20250

MakefileD04-Jul-2025982 3923

README.mdD04-Jul-20252 KiB5338

RELEASES.rstD04-Jul-202521.1 KiB597456

cargo_embargo.jsonD04-Jul-202569 55

clippy.tomlD04-Jul-202515 11

custom.cssD04-Jul-2025533 2620

graph-example.dotD04-Jul-2025222 1614

README.md

1![](assets/graphosaurus-512.png)
2
3# petgraph
4
5Graph data structure library. Please read the [API documentation here][].
6
7Supports Rust 1.64 and later.
8
9[![Crates.io][crates-badge]][crates-url]
10[![docs.rs][docsrs-badge]][docsrs-url]
11![MSRV][msrv-badge]
12[![Discord chat][discord-badge]][discord-url]
13[![build_status][]](https://github.com/petgraph/petgraph/actions)
14
15Crate feature flags:
16
17-   `graphmap` (default) enable `GraphMap`.
18-   `stable_graph` (default) enable `StableGraph`.
19-   `matrix_graph` (default) enable `MatrixGraph`.
20-   `serde-1` (optional) enable serialization for `Graph, StableGraph, GraphMap`
21    using serde 1.0. Requires Rust version as required by serde.
22-   `rayon` (optional) enable parallel iterators for the underlying data in `GraphMap`. Requires Rust version as required by Rayon.
23
24## Recent Changes
25
26See [RELEASES][] for a list of changes. The minimum supported rust
27version will only change on major releases.
28
29## Logo
30
31The mascot is named "Sir Paul Rustory Graphosaurus" (close friends call him Paul).
32The logo has been created by the talented Aren.
33
34## License
35
36Dual-licensed to be compatible with the Rust project.
37
38Licensed under the Apache License, Version 2.0
39<http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
40<http://opensource.org/licenses/MIT>, at your option. This file may not
41be copied, modified, or distributed except according to those terms.
42
43[API documentation here]: https://docs.rs/petgraph/
44[build_status]: https://github.com/petgraph/petgraph/workflows/Continuous%20integration/badge.svg?branch=master
45[docsrs-badge]: https://img.shields.io/docsrs/petgraph
46[docsrs-url]: https://docs.rs/petgraph/latest/petgraph/
47[crates-badge]: https://img.shields.io/crates/v/petgraph.svg
48[crates-url]: https://crates.io/crates/petgraph
49[discord-badge]:  https://img.shields.io/discord/1166289348384280616?logo=discord&style=flat
50[discord-url]: https://discord.gg/n2tc79tJ4e
51[msrv-badge]: https://img.shields.io/badge/rustc-1.64+-blue.svg
52[RELEASES]: RELEASES.rst
53