pub struct DfsSimple {
pub order: Vec<VertexId>,
pub order_out: Vec<VertexId>,
pub parents: Vec<Option<VertexId>>,
pub dist: Vec<Option<u32>>,
}Expand description
Result of dfs_simple.
Fields§
§order: Vec<VertexId>Vertices visited during the traversal, in DFS pre-order.
order_out: Vec<VertexId>Vertices in DFS post-order (finish order).
parents: Vec<Option<VertexId>>parents[v] == Some(p) if vertex v was discovered via p;
None for root and unreachable vertices.
dist: Vec<Option<u32>>dist[v] == Some(d) if v is reachable at DFS-tree depth d;
None if unreachable.
Trait Implementations§
impl Eq for DfsSimple
impl StructuralPartialEq for DfsSimple
Auto Trait Implementations§
impl Freeze for DfsSimple
impl RefUnwindSafe for DfsSimple
impl Send for DfsSimple
impl Sync for DfsSimple
impl Unpin for DfsSimple
impl UnsafeUnpin for DfsSimple
impl UnwindSafe for DfsSimple
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