[][src]Trait btree_graph::Adjacent

pub trait Adjacent<T> {
    type Error;
    pub fn adjacent(&self, x: T, y: T) -> Result<bool, Self::Error>;
}

Adjacent tests whether there is an edge from the vertex x to the vertex y. An error is thrown if either x, or y do not exist. By definition of adjacent there must exist an edge e, with value (x, y) in order for vertices x, and y to be considered adjacent.

Associated Types

Loading content...

Required methods

pub fn adjacent(&self, x: T, y: T) -> Result<bool, Self::Error>[src]

Loading content...

Implementors

impl<V, E> Adjacent<V> for BTreeGraph<V, E> where
    V: Ord,
    E: Ord
[src]

type Error = Error

Loading content...