Trait FiniteDigraphRef

Source
pub trait FiniteDigraphRef<'a>: FiniteGraphRef<'a> {
    // Required methods
    fn src(&self, e: Self::Edge) -> Self::Node;
    fn snk(&self, e: Self::Edge) -> Self::Node;
}
Expand description

A reference to a basic graph.

This trait contains methods with a unrestricted lifetime for self.

Required Methods§

Source

fn src(&self, e: Self::Edge) -> Self::Node

Source

fn snk(&self, e: Self::Edge) -> Self::Node

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<'a, G> FiniteDigraphRef<'a> for Network<'a, G>
where G: FiniteDigraph,

Source§

impl<'a, G> FiniteDigraphRef<'a> for ReverseDigraph<'a, G>
where G: FiniteDigraphRef<'a>,