sinistra 0.1.0-202603071957

A generic graph framework with pluggable storage and topology and streaming graph algorithms.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::graph::VertexHandle;

pub trait VertexSet {
    type Vertices<'a>: Iterator<Item = VertexHandle>
    where
        Self: 'a;

    fn vertices(&self) -> Self::Vertices<'_>;
}

pub trait VertexSetMut: VertexSet {
    fn add_vertex(&mut self, handle: VertexHandle) -> bool;
    fn remove_vertex(&mut self, handle: VertexHandle) -> bool;
}