Trait graphannis::graph::WriteableGraphStorage[][src]

pub trait WriteableGraphStorage: GraphStorage {
    pub fn add_edge(&mut self, edge: Edge) -> Result<(), GraphAnnisCoreError>;
pub fn add_edge_annotation(
        &mut self,
        edge: Edge,
        anno: Annotation
    ) -> Result<(), GraphAnnisCoreError>;
pub fn delete_edge(
        &mut self,
        edge: &Edge
    ) -> Result<(), GraphAnnisCoreError>;
pub fn delete_edge_annotation(
        &mut self,
        edge: &Edge,
        anno_key: &AnnoKey
    ) -> Result<(), GraphAnnisCoreError>;
pub fn delete_node(&mut self, node: u64) -> Result<(), GraphAnnisCoreError>;
pub fn calculate_statistics(&mut self); }

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]

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]

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.

Loading content...

Implementations on Foreign Types

impl WriteableGraphStorage for DiskAdjacencyListStorage[src]

impl WriteableGraphStorage for AdjacencyListStorage[src]

Loading content...

Implementors

Loading content...