4 releases (2 breaking)

0.3.0 Nov 18, 2024
0.2.0 Apr 9, 2024
0.1.3 Feb 5, 2024
0.1.0 Jan 15, 2024

#1054 in Data structures

Download history 7/week @ 2024-09-20 3/week @ 2024-09-27 1/week @ 2024-10-04 122/week @ 2024-11-15 19/week @ 2024-11-22 10/week @ 2024-11-29 10/week @ 2024-12-06

161 downloads per month

Apache-2.0

250KB
5K SLoC

Rust 3K SLoC // 0.0% comments Python 2.5K SLoC // 0.2% comments Forge Config 23 SLoC Shell 9 SLoC Batch 8 SLoC

Contains (Python package, 24KB) typed_graph-0.2.0-py3-none-any.whl, (Python package, 23KB) typed_graph-0.1.4-py3-none-any.whl

typed_graph

Graph data structure with an enforcable schema

Crates.io docs.rs

typed_graph is an alternative to petgraph that focuses more on functionality rather than performance.

The main guarantees typed_graph provides:

  • Consistent node and edge weight types
  • Custom keys for all nodes and edges
  • Type safe convertion from one schema to another
  • Simple traversal API
  • Preserves outgoing edge order

Getting Started

For a comprehensive overview on how to setup and use typed_graph see the json_graph example in the example folder

Other crates

  • typed_graph_cli: Provides a language for auto generating staticly typed schemas
  • typed_graph_py: Port of typed_graph to python

Dependencies

~1.7–2.8MB
~54K SLoC