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

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

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

Required methods

pub fn get_outgoing_edges(
    &'a self,
    node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>
[src]

Get all outgoing edges for a given node.

pub fn get_ingoing_edges(
    &'a self,
    node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>
[src]

Get all incoming edges for a given node.

pub fn source_nodes(&'a self) -> Box<dyn Iterator<Item = u64> + 'a, Global>[src]

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

Loading content...

Provided methods

pub fn has_outgoing_edges(&self, node: u64) -> bool[src]

Return true of the given node has any outgoing edges.

pub fn get_statistics(&self) -> Option<&GraphStatistic>[src]

Loading content...

Implementations on Foreign Types

impl<'a> EdgeContainer for UnionEdgeContainer<'a>[src]

impl<PosT> EdgeContainer for LinearGraphStorage<PosT> where
    PosT: 'static + NumValue
[src]

impl EdgeContainer for DiskAdjacencyListStorage[src]

impl<OrderT, LevelT> EdgeContainer for PrePostOrderStorage<OrderT, LevelT> where
    OrderT: 'static + NumValue + for<'de> Deserialize<'de> + Serialize,
    LevelT: 'static + NumValue + for<'de> Deserialize<'de> + Serialize
[src]

impl EdgeContainer for AdjacencyListStorage[src]

impl EdgeContainer for DenseAdjacencyListStorage[src]

pub fn get_outgoing_edges(
    &'a self,
    node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>
[src]

Get all outgoing edges for a given node.

pub fn source_nodes(&'a self) -> Box<dyn Iterator<Item = u64> + 'a, Global>[src]

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

Loading content...

Implementors

Loading content...