simple-triplestore 0.1.1

A simple graph database for storing triples with support for custom node and edge properties.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::borrow::Borrow;

use crate::{
    prelude::*,
    traits::{IdType, Property},
    Triple,
};

/// Removal operations for TripleStores.
pub trait TripleStoreRemove<Id: IdType, NodeProps: Property, EdgeProps: Property>:
    TripleStoreError
{
    /// Remove the node with `id`.
    fn remove_node(&mut self, id: impl Borrow<Id>) -> Result<(), Self::Error>;

    /// Remove the node with `triple`.
    fn remove_edge(&mut self, triple: Triple<Id>) -> Result<(), Self::Error>;
}