| Crates.io | graph-api-lib |
| lib.rs | graph-api-lib |
| version | 0.2.1 |
| created_at | 2025-04-12 22:40:45.716644+00 |
| updated_at | 2025-06-13 21:02:06.708912+00 |
| description | Core library for the graph-api ecosystem - a flexible, type-safe API for working with in-memory graphs in Rust |
| homepage | |
| repository | https://github.com/BrynCooke/graph-api |
| max_upload_size | |
| id | 1631323 |
| size | 299,580 |
Welcome to graph-api-lib — a delightful and powerful general-purpose library for working with graph data structures in Rust!
graph-api-lib provides a standardized API for graph mutation and traversal, abstracting away the complexity of working with different graph implementations. It allows you to write clean, maintainable graph-related code that isn't tied to a specific backend.
With graph-api-lib, graph operations become intuitive and enjoyable. Add vertices, create edges, traverse your data, and analyze graph structures with a consistent, ergonomic interface.
Dive into the graph-api book for a comprehensive guide to using this library.
// Find all people who created projects written in Rust:
let rust_creators = graph
.walk()
.vertices(Vertex::person())
.edges(Edge::created().direction(Direction::Outgoing))
.tail()
.edges(Edge::language().direction(Direction::Outgoing))
.tail()
.filter_rust()
.head()
.collect::<Vec<_ > > ();