pub trait GraphStore<NodeKey, EdgeKey, PropKey, Prop, E> {
// Required methods
fn create_node(
&mut self,
id: NodeKey,
properties: &Prop,
) -> Result<NodeKey, E>;
fn update_node(
&mut self,
id: NodeKey,
properties: &Prop,
) -> Result<NodeKey, E>;
fn delete_node(&mut self, id: NodeKey) -> Result<NodeKey, E>;
fn create_edge(
&mut self,
n1: NodeKey,
n2: NodeKey,
properties: &Prop,
) -> Result<EdgeKey, E>;
fn delete_edge(&mut self, id: &EdgeKey) -> Result<(), E>;
fn create_property(&mut self, properties: &Prop) -> Result<PropKey, E>;
fn delete_property(&mut self, id: &PropKey) -> Result<(), E>;
}Expand description
The Interface for a Graph DB