[][src]Trait graphannis::graph::EdgeContainer

pub trait EdgeContainer: Sync + Send + MallocSizeOf {
    fn get_outgoing_edges<'a>(
        &'a self,
        node: NodeID
    ) -> Box<dyn Iterator<Item = NodeID> + 'a>;
fn get_ingoing_edges<'a>(
        &'a self,
        node: NodeID
    ) -> Box<dyn Iterator<Item = NodeID> + 'a>;
fn source_nodes<'a>(&'a self) -> Box<dyn Iterator<Item = NodeID> + 'a>; fn get_statistics(&self) -> Option<&GraphStatistic> { ... } }

Basic trait for accessing edges of a graph for a specific component.

Required methods

fn get_outgoing_edges<'a>(
    &'a self,
    node: NodeID
) -> Box<dyn Iterator<Item = NodeID> + 'a>

Get all outgoing edges for a given node.

fn get_ingoing_edges<'a>(
    &'a self,
    node: NodeID
) -> Box<dyn Iterator<Item = NodeID> + 'a>

Get all incoming edges for a given node.

fn source_nodes<'a>(&'a self) -> Box<dyn Iterator<Item = NodeID> + 'a>

Provides an iterator over all nodes of this edge container that are the source an edge

Loading content...

Provided methods

Loading content...

Implementors

Loading content...