[][src]Trait btree_graph::AddEdge

pub trait AddEdge<V, E> {
    type Error;
    pub fn add_edge(
        &mut self,
        x: V,
        y: V,
        e: E
    ) -> Result<Option<(V, V)>, Self::Error>; }

AddEdge add an edge from the vertex x to the vertex y, if it is not there.

Associated Types

Loading content...

Required methods

pub fn add_edge(
    &mut self,
    x: V,
    y: V,
    e: E
) -> Result<Option<(V, V)>, Self::Error>
[src]

Loading content...

Implementors

impl<V, E> AddEdge<V, E> for BTreeGraph<V, E> where
    V: Ord + Clone,
    E: Ord + Clone
[src]

When you add an edge, you should make sure that the x, and y vertices exist.

type Error = Error

Loading content...