Trait graphannis::graph::WriteableGraphStorage [−][src]
Trait for accessing graph storages which can be written to.
Required methods
pub fn add_edge(&mut self, edge: Edge) -> Result<(), GraphAnnisCoreError>
[src]
Add an edge to this graph storage.
pub fn add_edge_annotation(
&mut self,
edge: Edge,
anno: Annotation
) -> Result<(), GraphAnnisCoreError>
[src]
&mut self,
edge: Edge,
anno: Annotation
) -> Result<(), GraphAnnisCoreError>
Add an annotation to an edge in this graph storage. The edge has to exist.
pub fn delete_edge(&mut self, edge: &Edge) -> Result<(), GraphAnnisCoreError>
[src]
Delete an existing edge.
pub fn delete_edge_annotation(
&mut self,
edge: &Edge,
anno_key: &AnnoKey
) -> Result<(), GraphAnnisCoreError>
[src]
&mut self,
edge: &Edge,
anno_key: &AnnoKey
) -> Result<(), GraphAnnisCoreError>
Delete the annotation (defined by the qualified annotation name in anno_key
) for an edge
.
pub fn delete_node(&mut self, node: u64) -> Result<(), GraphAnnisCoreError>
[src]
Delete a node from this graph storage. This deletes both edges edges where the node is the source or the target node.
pub fn calculate_statistics(&mut self)
[src]
Re-calculate the statistics of this graph storage.
Implementations on Foreign Types
impl WriteableGraphStorage for DiskAdjacencyListStorage
[src]
pub fn add_edge(&mut self, edge: Edge) -> Result<(), GraphAnnisCoreError>
[src]
pub fn add_edge_annotation(
&mut self,
edge: Edge,
anno: Annotation
) -> Result<(), GraphAnnisCoreError>
[src]
&mut self,
edge: Edge,
anno: Annotation
) -> Result<(), GraphAnnisCoreError>
pub fn delete_edge(&mut self, edge: &Edge) -> Result<(), GraphAnnisCoreError>
[src]
pub fn delete_edge_annotation(
&mut self,
edge: &Edge,
anno_key: &AnnoKey
) -> Result<(), GraphAnnisCoreError>
[src]
&mut self,
edge: &Edge,
anno_key: &AnnoKey
) -> Result<(), GraphAnnisCoreError>
pub fn delete_node(&mut self, node: u64) -> Result<(), GraphAnnisCoreError>
[src]
pub fn calculate_statistics(&mut self)
[src]
impl WriteableGraphStorage for AdjacencyListStorage
[src]
pub fn add_edge(&mut self, edge: Edge) -> Result<(), GraphAnnisCoreError>
[src]
pub fn add_edge_annotation(
&mut self,
edge: Edge,
anno: Annotation
) -> Result<(), GraphAnnisCoreError>
[src]
&mut self,
edge: Edge,
anno: Annotation
) -> Result<(), GraphAnnisCoreError>
pub fn delete_edge(&mut self, edge: &Edge) -> Result<(), GraphAnnisCoreError>
[src]
pub fn delete_edge_annotation(
&mut self,
edge: &Edge,
anno_key: &AnnoKey
) -> Result<(), GraphAnnisCoreError>
[src]
&mut self,
edge: &Edge,
anno_key: &AnnoKey
) -> Result<(), GraphAnnisCoreError>