pub enum DfsEvent {
Discover {
vid: VertexId,
dist: usize,
},
Finish {
vid: VertexId,
dist: usize,
},
}Expand description
An event reported to a depth-first search visitor (Graph::dfs_with).
igraph has two DFS callbacks: one when a vertex is discovered
(in_callback) and one when its subtree is finished (out_callback).
A single Rust closure receives both, as the two variants of this enum.
Variants§
Discover
A vertex has just been discovered (pre-order).
Fields
Finish
The whole subtree of a vertex has been explored (post-order).
Implementations§
Trait Implementations§
impl Copy for DfsEvent
impl Eq for DfsEvent
impl StructuralPartialEq for DfsEvent
Auto Trait Implementations§
impl Freeze for DfsEvent
impl RefUnwindSafe for DfsEvent
impl Send for DfsEvent
impl Sync for DfsEvent
impl Unpin for DfsEvent
impl UnsafeUnpin for DfsEvent
impl UnwindSafe for DfsEvent
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