[][src]Struct btree_graph::BTreeGraph

pub struct BTreeGraph<V, E> where
    V: Ord,
    E: Ord
{ /* fields omitted */ }

BTreeGraph is an implementation of a graph (abstract data structure) which utilizes BTreeMap for the edge and vertex adjacency lists.

Implementations

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

pub fn new() -> Self[src]

Trait Implementations

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

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

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

type Error = Error

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

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

type Error = Error

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

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

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

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

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

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

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

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

When an edge is removed, you should find the incident vertex and ensure the edge is removed from the vertex's adjacency list.

type Error = Error

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

When you remove a vertex, you should ensure there are no dangling edges.

type Error = Error

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

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

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

Auto Trait Implementations

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

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

impl<V, E> Unpin for BTreeGraph<V, E>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.