snark-tool 0.4.0

snark-tool library contains structures and algorithm for (mainly) cubic graph analysis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::graph::vertex::{Vertex, VertexConstructor};

#[derive(Debug, Hash, Eq, PartialEq, Clone)]
pub struct SimpleVertex {
    index: usize,
}

impl Vertex for SimpleVertex {
    fn index(&self) -> usize {
        self.index
    }
}

impl VertexConstructor for SimpleVertex {
    fn new(index: usize) -> Self {
        SimpleVertex { index }
    }
}