pub struct DirectedGraph { /* private fields */ }Expand description
A directed graph.
Implementations§
Source§impl DirectedGraph
impl DirectedGraph
Sourcepub fn delete_edge(&mut self, v: usize, w: usize)
pub fn delete_edge(&mut self, v: usize, w: usize)
Remove the edge from v to w.
Sourcepub fn neighbors_of(&self, v: usize) -> &Vec<usize>
pub fn neighbors_of(&self, v: usize) -> &Vec<usize>
Return a reference to the adjacency list of vertex v.
Trait Implementations§
Source§impl Clone for DirectedGraph
impl Clone for DirectedGraph
Source§fn clone(&self) -> DirectedGraph
fn clone(&self) -> DirectedGraph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DirectedGraph
impl RefUnwindSafe for DirectedGraph
impl Send for DirectedGraph
impl Sync for DirectedGraph
impl Unpin for DirectedGraph
impl UnsafeUnpin for DirectedGraph
impl UnwindSafe for DirectedGraph
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