Paths

Trait Paths 

Source
pub trait Paths: Incidence {
    // Provided methods
    fn find_path(
        &self,
        u: Vertex<Self>,
        v: Vertex<Self>,
    ) -> Option<Vec<Edge<Self>>>
       where Self: WithVertexProp<Color> { ... }
    fn is_walk<I>(&self, edges: I) -> bool
       where I: IntoIterator,
             I::Item: IntoOwned<Edge<Self>> { ... }
    fn is_path<I>(&self, edges: I) -> bool
       where Self: WithVertexProp<bool>,
             I: IntoIterator,
             I::Item: IntoOwned<Edge<Self>> { ... }
}

Provided Methods§

Source

fn find_path(&self, u: Vertex<Self>, v: Vertex<Self>) -> Option<Vec<Edge<Self>>>
where Self: WithVertexProp<Color>,

Source

fn is_walk<I>(&self, edges: I) -> bool
where I: IntoIterator, I::Item: IntoOwned<Edge<Self>>,

Source

fn is_path<I>(&self, edges: I) -> bool
where Self: WithVertexProp<bool>, I: IntoIterator, I::Item: IntoOwned<Edge<Self>>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<G> Paths for G
where G: Incidence,