pub struct ZeroOneBfsOutput {
pub dist: Vec<u64>,
pub parent: Vec<usize>,
}Expand description
Result of a 0-1 BFS run from a single source.
Fields§
§dist: Vec<u64>dist[v] = shortest distance from source (u64::MAX if unreachable).
parent: Vec<usize>parent[v] = predecessor of v (usize::MAX if none; source is its own).
Trait Implementations§
Source§impl Clone for ZeroOneBfsOutput
impl Clone for ZeroOneBfsOutput
Source§fn clone(&self) -> ZeroOneBfsOutput
fn clone(&self) -> ZeroOneBfsOutput
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 ZeroOneBfsOutput
impl RefUnwindSafe for ZeroOneBfsOutput
impl Send for ZeroOneBfsOutput
impl Sync for ZeroOneBfsOutput
impl Unpin for ZeroOneBfsOutput
impl UnsafeUnpin for ZeroOneBfsOutput
impl UnwindSafe for ZeroOneBfsOutput
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