pub struct BfsGraph {
pub n: usize,
pub adj: Vec<Vec<usize>>,
}Expand description
An unweighted adjacency-list graph.
Fields§
§n: usize§adj: Vec<Vec<usize>>Implementations§
Auto Trait Implementations§
impl Freeze for BfsGraph
impl RefUnwindSafe for BfsGraph
impl Send for BfsGraph
impl Sync for BfsGraph
impl Unpin for BfsGraph
impl UnsafeUnpin for BfsGraph
impl UnwindSafe for BfsGraph
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