Skip to main content

SimpleCyclesForTaggedGraph

Trait SimpleCyclesForTaggedGraph 

Source
pub trait SimpleCyclesForTaggedGraph{
    // Provided methods
    fn simple_cycles(
        &self,
    ) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = (EdgeId, &Self::Edge)> + '_>> + '_> { ... }
    fn simple_cycles_reachable_from(
        &self,
        vert: &Self::Vertex,
    ) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = (EdgeId, &Self::Edge)> + '_>> + '_> { ... }
}
Expand description

Trait and default implementation of finding simple cycles on both directed and undirected tagged graphs.

Provided Methods§

Source

fn simple_cycles( &self, ) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = (EdgeId, &Self::Edge)> + '_>> + '_>

Iterates over all simple cycles.

Source

fn simple_cycles_reachable_from( &self, vert: &Self::Vertex, ) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = (EdgeId, &Self::Edge)> + '_>> + '_>

Iterates over simple cycles only reachable from vert.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§