Enum rustworkx_core::traversal::BfsEvent
source · pub enum BfsEvent<N, E> {
Discover(N),
TreeEdge(N, N, E),
NonTreeEdge(N, N, E),
GrayTargetEdge(N, N, E),
BlackTargetEdge(N, N, E),
Finish(N),
}
Expand description
A breadth first search (BFS) visitor event.
Variants§
Discover(N)
TreeEdge(N, N, E)
An edge of the tree formed by the traversal.
NonTreeEdge(N, N, E)
An edge that does not belong to the tree.
GrayTargetEdge(N, N, E)
For an edge (u, v), if node v is currently in the queue at the time of examination, then it is a gray-target edge.
BlackTargetEdge(N, N, E)
For an edge (u, v), if node v has been removed from the queue at the time of examination, then it is a black-target edge.
Finish(N)
All edges from a node have been reported.
Trait Implementations§
impl<N: Copy, E: Copy> Copy for BfsEvent<N, E>
Auto Trait Implementations§
impl<N, E> RefUnwindSafe for BfsEvent<N, E>where E: RefUnwindSafe, N: RefUnwindSafe,
impl<N, E> Send for BfsEvent<N, E>where E: Send, N: Send,
impl<N, E> Sync for BfsEvent<N, E>where E: Sync, N: Sync,
impl<N, E> Unpin for BfsEvent<N, E>where E: Unpin, N: Unpin,
impl<N, E> UnwindSafe for BfsEvent<N, E>where E: UnwindSafe, N: UnwindSafe,
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