ade-graph 0.1.1

Core graph data structures and utilities for directed graphs.
Documentation
  • Coverage
  • 13.04%
    3 out of 23 items documented0 out of 15 items with examples
  • Size
  • Source code size: 41.9 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 690.1 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • riccardoscalco

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.