Trait graphannis::graph::EdgeContainer [−][src]
pub trait EdgeContainer: Sync + Send + MallocSizeOf {
fn get_outgoing_edges(
&'a self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>;
fn get_ingoing_edges(
&'a self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>;
fn source_nodes(&'a self) -> Box<dyn Iterator<Item = u64> + 'a, Global>;
fn has_outgoing_edges(&self, node: u64) -> bool { ... }
fn get_statistics(&self) -> Option<&GraphStatistic> { ... }
}
Expand description
Basic trait for accessing edges of a graph for a specific component.
Required methods
Get all outgoing edges for a given node
.
Get all incoming edges for a given node
.
Provided methods
fn has_outgoing_edges(&self, node: u64) -> bool
fn has_outgoing_edges(&self, node: u64) -> bool
Return true of the given node has any outgoing edges.
fn get_statistics(&self) -> Option<&GraphStatistic>
Implementations on Foreign Types
Get all outgoing edges for a given node
.
Provides an iterator over all nodes of this edge container that are the source an edge