pub struct Afforest<NI: Idx>(/* private fields */);Expand description
A union find data structure based on [1].
Note, that this data structure requires calling compress
before calling find in order to return the correct set id.
[1] Michael Sutton, Tal Ben-Nun, Amnon Barak: “Optimizing Parallel Graph Connectivity Computation via Subgraph Sampling”, Symposium on Parallel and Distributed Processing, IPDPS 2018
Implementations§
Trait Implementations§
Source§impl<NI: Idx> Components<NI> for Afforest<NI>
impl<NI: Idx> Components<NI> for Afforest<NI>
impl<NI: Idx> Send for Afforest<NI>
impl<NI: Idx> Sync for Afforest<NI>
Auto Trait Implementations§
impl<NI> !RefUnwindSafe for Afforest<NI>
impl<NI> Freeze for Afforest<NI>
impl<NI> Unpin for Afforest<NI>
impl<NI> UnsafeUnpin for Afforest<NI>
impl<NI> UnwindSafe for Afforest<NI>where
NI: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more