#directed-graph #graph-node #graph #graph-algorithms #ports #structure

portgraph

Data structure library for directed graphs with first-level ports

19 releases (10 breaking)

0.12.3 Nov 13, 2024
0.12.2 Jul 5, 2024
0.12.1 Jun 3, 2024
0.12.0 Mar 1, 2024
0.1.0 Mar 2, 2023

#121 in Data structures

Download history 1232/week @ 2024-08-21 2261/week @ 2024-08-28 3455/week @ 2024-09-04 1178/week @ 2024-09-11 760/week @ 2024-09-18 1058/week @ 2024-09-25 1077/week @ 2024-10-02 2468/week @ 2024-10-09 1402/week @ 2024-10-16 990/week @ 2024-10-23 1346/week @ 2024-10-30 861/week @ 2024-11-06 1545/week @ 2024-11-13 1453/week @ 2024-11-20 2123/week @ 2024-11-27 1176/week @ 2024-12-04

6,380 downloads per month
Used in 10 crates (6 directly)

Apache-2.0

360KB
7.5K SLoC

portgraph

build_status crates msrv codecov

Data structure library for directed graphs with first-level ports. Includes secondary data structures for node and port weights, and node hierarchies.

Please read the API documentation here.

Features

  • pyo3: Enable Python bindings via pyo3.
  • serde: Enable serialization and deserialization via serde.
  • petgraph: Enable petgraph interoperability by implementing the petgraph::visit traits for PortGraph and MultiPortGraph.

Recent Changes

See CHANGELOG for a list of changes. The minimum supported rust version will only change on major releases.

Development

See DEVELOPMENT.md for instructions on setting up the development environment.

License

This project is licensed under Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0).

Dependencies

~1.6–4MB
~80K SLoC