graph_core/
lib.rs

1#![warn(missing_docs)]
2
3//! # graph-core
4//!
5//! Core graph abstractions for graph-rs: type-safe node/edge identifiers,
6//! the central [`Graph`] trait, and two primary representations —
7//! [`AdjacencyList`] and [`AdjacencyMatrix`].
8//!
9
10mod adjacency_list;
11mod adjacency_matrix;
12mod builder;
13mod edge;
14mod error;
15mod graph;
16mod id;
17
18pub use adjacency_list::AdjacencyList;
19pub use adjacency_matrix::AdjacencyMatrix;
20pub use builder::GraphBuilder;
21pub use edge::{Edge, UnweightedEdge, WeightedEdge};
22pub use error::GraphError;
23pub use graph::Graph;
24pub use id::{EdgeId, NodeId};