pub struct BTreeGraph<V, E>{ /* private fields */ }Expand description
BTreeGraph is an implementation of a graph (abstract data structure)
which utilizes BTreeMap for the edge and vertex adjacency lists.
Implementations§
Trait Implementations§
Source§impl<V, E> AddEdge<V, E> for BTreeGraph<V, E>
When you add an edge, you should make sure that the x, and y vertices exist.
impl<V, E> AddEdge<V, E> for BTreeGraph<V, E>
When you add an edge, you should make sure that the x, and y vertices exist.
Source§impl<V, E> AddVertex<V, E> for BTreeGraph<V, E>
impl<V, E> AddVertex<V, E> for BTreeGraph<V, E>
fn add_vertex(&mut self, x: V) -> Option<BTreeSet<E>>
Source§impl<V, E> Adjacent<V> for BTreeGraph<V, E>
impl<V, E> Adjacent<V> for BTreeGraph<V, E>
Source§impl<V, E> Clone for BTreeGraph<V, E>
impl<V, E> Clone for BTreeGraph<V, E>
Source§fn clone(&self) -> BTreeGraph<V, E>
fn clone(&self) -> BTreeGraph<V, E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<V, E> Connections<V> for BTreeGraph<V, E>
impl<V, E> Connections<V> for BTreeGraph<V, E>
Source§impl<V, E> Debug for BTreeGraph<V, E>
impl<V, E> Debug for BTreeGraph<V, E>
Source§impl<V, E> Default for BTreeGraph<V, E>
impl<V, E> Default for BTreeGraph<V, E>
Source§impl<V, E> Edges<E> for BTreeGraph<V, E>
impl<V, E> Edges<E> for BTreeGraph<V, E>
Source§impl<V, E> GetEdgeValue<V, E> for BTreeGraph<V, E>
impl<V, E> GetEdgeValue<V, E> for BTreeGraph<V, E>
fn get_edge_value(&self, e: E) -> Option<&(V, V)>
Source§impl<V, E> GetVertexValue<V, E> for BTreeGraph<V, E>
impl<V, E> GetVertexValue<V, E> for BTreeGraph<V, E>
fn get_vertex_value(&self, v: V) -> Option<&BTreeSet<E>>
Source§impl<V, E> PartialEq for BTreeGraph<V, E>
impl<V, E> PartialEq for BTreeGraph<V, E>
Source§impl<V, E> RemoveEdge<V, E> for BTreeGraph<V, E>
When an edge is removed, you should find the incident vertex and ensure the edge
is removed from the vertex’s adjacency list.
impl<V, E> RemoveEdge<V, E> for BTreeGraph<V, E>
When an edge is removed, you should find the incident vertex and ensure the edge is removed from the vertex’s adjacency list.
Source§impl<V, E> RemoveVertex<V, E> for BTreeGraph<V, E>
When you remove a vertex, you should ensure there are no dangling edges.
impl<V, E> RemoveVertex<V, E> for BTreeGraph<V, E>
When you remove a vertex, you should ensure there are no dangling edges.
Source§impl<V, E> Vertices<V> for BTreeGraph<V, E>
impl<V, E> Vertices<V> for BTreeGraph<V, E>
impl<V, E> Eq for BTreeGraph<V, E>
impl<V, E> StructuralPartialEq for BTreeGraph<V, E>
Auto Trait Implementations§
impl<V, E> Freeze for BTreeGraph<V, E>
impl<V, E> RefUnwindSafe for BTreeGraph<V, E>where
V: RefUnwindSafe,
E: RefUnwindSafe,
impl<V, E> Send for BTreeGraph<V, E>
impl<V, E> Sync for BTreeGraph<V, E>
impl<V, E> Unpin for BTreeGraph<V, E>
impl<V, E> UnwindSafe for BTreeGraph<V, E>where
V: RefUnwindSafe,
E: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more