gryf 0.2.1

Graph data structure library with focus on convenience, versatility, correctness and performance.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use gryf::{domain::Graph, storage::AdjMatrix};

fn main() {
    let mut graph = Graph::new_undirected_in(AdjMatrix::default());

    let u = graph.add_vertex("u");
    let v = graph.add_vertex("v");
    let w = graph.add_vertex("w");

    graph.add_edge(u, v, 1);
    graph.add_edge(v, w, 2);
    graph.add_edge(w, u, 3);
}