ddgg 0.10.1

A stable graph with undo/redo built in.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use snafu::Snafu;

use crate::graph::{EdgeIndex, VertexIndex};

#[derive(Snafu, Debug)]
#[snafu(visibility(pub))]
pub enum GraphError {
    #[snafu(display("Vertex `{index:?}` does not exist"))]
    VertexDoesNotExist { index: VertexIndex },
    #[snafu(display("Edge `{index:?}` does not exist"))]
    EdgeDoesNotExist { index: EdgeIndex },
    #[snafu(display("Invalid diff"))]
    InvalidDiff,
}