Graph algorithms, operations, generators, and representations.
See the changelog for a provisional roadmap.
Installation
Add the following to your Cargo.toml:
[]
= "0.30.0"
Usage
use ;
let mut graph = ;
// ╭───╮ ╭───╮
// │ 0 │ → │ 1 │
// ╰───╯ ╰───╯
// ↑ ↓
// ╭───╮ ╭───╮
// │ 3 │ │ 2 │
// ╰───╯ ╰───╯
graph.add_edge;
graph.add_edge;
graph.add_edge;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
let path = single_pair_shortest_path;
assert_eq!;
Features
adjacency_matrix
This feature enables AdjacencyMatrix, which requires nightly Rust. To disable, change the [dependencies] entry for graaf in your Cargo.toml:
[]
= { = "0.30.0", = false }