pub struct Digraph { /* private fields */ }
Expand description
有向图
#用法
use algorithms_fourth::digraph::Digraph;
let mut g = Digraph::new(2);
g.add_edge(0,1);
Implementations§
Auto Trait Implementations§
impl Freeze for Digraph
impl RefUnwindSafe for Digraph
impl Send for Digraph
impl Sync for Digraph
impl Unpin for Digraph
impl UnwindSafe for Digraph
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