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
14
15
use gryf::{
    core::id::{CustomId, EdgeId, VertexId},
    domain::Graph,
    storage::AdjList,
};

fn main() {
    let mut graph =
        Graph::new_directed_in(AdjList::with_id::<CustomId<VertexId<u8>, EdgeId<u16>>>());

    let hello = graph.add_vertex("hello");
    let world = graph.add_vertex("world");

    graph.add_edge(hello, world, ());
}