conspire 0.7.1

The Rust interface to conspire.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::math::Set;

pub struct Graph {
    adjacency: Set<Vec<Vec<usize>>>,
}

impl Graph {
    pub fn adjacency(&self) -> &[Vec<usize>] {
        self.adjacency.members()
    }
}

impl From<Vec<Vec<usize>>> for Graph {
    fn from(data: Vec<Vec<usize>>) -> Self {
        let adjacency = data.into();
        Self { adjacency }
    }
}