Trait graphannis::graph::EdgeContainer [−][src]
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]
&'a self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>
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]
&'a self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>
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
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]
Implementations on Foreign Types
impl<'a> EdgeContainer for UnionEdgeContainer<'a>
[src]
pub fn get_outgoing_edges(
&'b self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'b, Global>
[src]
&'b self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'b, Global>
pub fn get_ingoing_edges(
&'b self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'b, Global>
[src]
&'b self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'b, Global>
pub fn source_nodes(&'b self) -> Box<dyn Iterator<Item = u64> + 'b, Global>
[src]
impl<PosT> EdgeContainer for LinearGraphStorage<PosT> where
PosT: 'static + NumValue,
[src]
PosT: 'static + NumValue,
pub fn get_outgoing_edges(
&'a self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>
[src]
&'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>
[src]
&'a self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>
pub fn source_nodes(&'a self) -> Box<dyn Iterator<Item = u64> + 'a, Global>
[src]
pub fn get_statistics(&self) -> Option<&GraphStatistic>
[src]
impl EdgeContainer for DiskAdjacencyListStorage
[src]
pub fn get_outgoing_edges(
&'a self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>
[src]
&'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>
[src]
&'a self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>
pub fn source_nodes(&'a self) -> Box<dyn Iterator<Item = u64> + 'a, Global>
[src]
pub fn get_statistics(&self) -> Option<&GraphStatistic>
[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]
OrderT: 'static + NumValue + for<'de> Deserialize<'de> + Serialize,
LevelT: 'static + NumValue + for<'de> Deserialize<'de> + Serialize,
pub fn get_outgoing_edges(
&'a self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>
[src]
&'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>
[src]
&'a self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>
pub fn source_nodes(&'a self) -> Box<dyn Iterator<Item = u64> + 'a, Global>
[src]
pub fn get_statistics(&self) -> Option<&GraphStatistic>
[src]
impl EdgeContainer for AdjacencyListStorage
[src]
pub fn get_outgoing_edges(
&'a self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>
[src]
&'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>
[src]
&'a self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>
pub fn source_nodes(&'a self) -> Box<dyn Iterator<Item = u64> + 'a, Global>
[src]
pub fn get_statistics(&self) -> Option<&GraphStatistic>
[src]
impl EdgeContainer for DenseAdjacencyListStorage
[src]
pub fn get_outgoing_edges(
&'a self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>
[src]
&'a self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>
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]
&'a self,
node: u64
) -> Box<dyn Iterator<Item = u64> + 'a, Global>
pub fn get_statistics(&self) -> Option<&GraphStatistic>
[src]
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