safegraph 0.1.0

A type-safe, scope-aware graph library that leverages Rust's type system to prevent common graph-related bugs at compile time
Documentation
1
2
3
4
5
6
7
8
9
10
#![allow(unused_variables)]

fn main() {
    let mut g = safegraph::VecGraph::<(i64, u32), (i64, u32)>::default().stabilize();
    safegraph::graph!(
        &mut g =>
        {(0, 1u32)} -- e {(0, 10u32)} --> {(0, 2u32)},
        {(0, 3u32)} -- e {(0, 11u32)} --> {(0, 4u32)}
    );
}