| Crates.io | ade-graph |
| lib.rs | ade-graph |
| version | 0.1.1 |
| created_at | 2025-08-26 06:06:32.865904+00 |
| updated_at | 2025-08-26 06:06:32.865904+00 |
| description | Core graph data structures and utilities for directed graphs. |
| homepage | https://github.com/riccardoscalco/ade |
| repository | https://github.com/riccardoscalco/ade |
| max_upload_size | |
| id | 1810565 |
| size | 41,936 |
ade-graph provides the core graph data structures and utilities for directed graphs within the ADE ecosystem. It focuses on efficient representation and manipulation of graph data.
Add this to your Cargo.toml:
[dependencies]
ade-graph = "0.1.0"
The ade-graph crate offers utilities for building and working with directed graphs. The build_graph function is a convenient way to construct a graph from a list of nodes and edges.
use ade_graph::build::build_graph;
use ade_graph::GraphViewTrait;
fn main() {
// Define nodes and edges for a simple directed graph.
// Nodes: 0, 1, 2
// Edges: 0 -> 1, 1 -> 2, 2 -> 1
let nodes = vec![0, 1, 2];
let edges = vec![(0, 1), (1, 2), (2, 1)];
// Build the graph using the provided nodes and edges.
let graph = build_graph(nodes, edges);
}
The complete documentation is available on docs.rs.
Licensed under either of
at your option.