gamma 0.9.0

Graph primitives and traversals for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// A single traversal step comprised of source and target nodes, and a
/// boolean flag indicating whether a cycle cut is present.
#[derive(Eq,PartialEq,Hash,Debug)]
pub struct Step {
    pub sid: usize,
    pub tid: usize,
    pub cut: bool
}

impl Step {
    pub fn new(sid: usize, tid: usize, cut: bool) -> Self {
        Step { sid, tid, cut }
    }
}