wolf-graph 0.1.0

Data structures and algorithms for working with graphs with reference or value semantics.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// A convenience macro for creating a `NodeID` from a string literal or an integer literal.
#[macro_export]
macro_rules! nid {
    ($s:expr) => {
        $crate::NodeID::try_from($s).unwrap()
    };
}

/// A convenience macro for creating an `EdgeID` from a string literal or an integer literal.
#[macro_export]
macro_rules! eid {
    ($s:expr) => {
        $crate::EdgeID::try_from($s).unwrap()
    };
}