pub struct BreadthFirstTraversal<'a, N, E, A, H, S = DefaultHashBuilder>where
A: GraphProps,
H: HyperGraph<N, E, A>,{ /* private fields */ }
Expand description
Breadth-First Traversal algorithm for hypergraphs
Implementations§
Source§impl<'a, N, E, A, H, S> BreadthFirstTraversal<'a, N, E, A, H, S>
impl<'a, N, E, A, H, S> BreadthFirstTraversal<'a, N, E, A, H, S>
Sourcepub const fn queue(&self) -> &VecDeque<VertexId<A::Ix>>
pub const fn queue(&self) -> &VecDeque<VertexId<A::Ix>>
returns an immutable reference to the queue
Sourcepub const fn visited(&self) -> &VertexSet<A::Ix, S>
pub const fn visited(&self) -> &VertexSet<A::Ix, S>
returns an immutable reference to the visited vertices
Sourcepub const fn visited_mut(&mut self) -> &mut VertexSet<A::Ix, S>
pub const fn visited_mut(&mut self) -> &mut VertexSet<A::Ix, S>
returns a mutable reference to the visited vertices
Sourcepub fn has_visited<Q>(&self, vertex: &Q) -> bool
pub fn has_visited<Q>(&self, vertex: &Q) -> bool
returns true if the vertex has been visited
Trait Implementations§
Source§impl<'a, N, E, A, H, S> Search<IndexBase<<A as GraphProps>::Ix>> for BreadthFirstTraversal<'a, N, E, A, H, S>where
A: GraphProps,
H: HyperGraph<N, E, A>,
S: BuildHasher,
A::Ix: HyperIndex,
for<'b> &'b <H::Edge<E> as RawLayout>::Store: IntoIterator<Item = &'b VertexId<A::Ix>>,
impl<'a, N, E, A, H, S> Search<IndexBase<<A as GraphProps>::Ix>> for BreadthFirstTraversal<'a, N, E, A, H, S>where
A: GraphProps,
H: HyperGraph<N, E, A>,
S: BuildHasher,
A::Ix: HyperIndex,
for<'b> &'b <H::Edge<E> as RawLayout>::Store: IntoIterator<Item = &'b VertexId<A::Ix>>,
Source§impl<'a, N, E, A, H, S> Traversal<IndexBase<<A as GraphProps>::Ix>> for BreadthFirstTraversal<'a, N, E, A, H, S>
impl<'a, N, E, A, H, S> Traversal<IndexBase<<A as GraphProps>::Ix>> for BreadthFirstTraversal<'a, N, E, A, H, S>
Auto Trait Implementations§
impl<'a, N, E, A, H, S> Freeze for BreadthFirstTraversal<'a, N, E, A, H, S>where
S: Freeze,
impl<'a, N, E, A, H, S> RefUnwindSafe for BreadthFirstTraversal<'a, N, E, A, H, S>where
H: RefUnwindSafe,
S: RefUnwindSafe,
N: RefUnwindSafe,
E: RefUnwindSafe,
<A as GraphProps>::Ix: RefUnwindSafe,
impl<'a, N, E, A, H, S> Send for BreadthFirstTraversal<'a, N, E, A, H, S>
impl<'a, N, E, A, H, S> Sync for BreadthFirstTraversal<'a, N, E, A, H, S>
impl<'a, N, E, A, H, S> Unpin for BreadthFirstTraversal<'a, N, E, A, H, S>
impl<'a, N, E, A, H, S> UnwindSafe for BreadthFirstTraversal<'a, N, E, A, H, S>where
H: RefUnwindSafe,
S: UnwindSafe,
N: UnwindSafe,
E: UnwindSafe,
<A as GraphProps>::Ix: 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