ade-graph

Crates.ioade-graph
lib.rsade-graph
version0.1.1
created_at2025-08-26 06:06:32.865904+00
updated_at2025-08-26 06:06:32.865904+00
descriptionCore graph data structures and utilities for directed graphs.
homepagehttps://github.com/riccardoscalco/ade
repositoryhttps://github.com/riccardoscalco/ade
max_upload_size
id1810565
size41,936
Riccardo Scalco (riccardoscalco)

documentation

README

Ade-graph

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.

Installation

Add this to your Cargo.toml:

[dependencies]
ade-graph = "0.1.0"

Usage Example

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);
}

Documentation

The complete documentation is available on docs.rs.

License

Licensed under either of

at your option.

Commit count: 7

cargo fmt