pub struct ImplicitWitness {
pub seed: VertexId,
pub membership: RoaringBitmap,
pub boundary_size: u64,
pub hash: u64,
}Expand description
Implicit representation of a cut witness
The witness represents a connected set U ⊆ V where:
- U contains the seed vertex
- |δ(U)| = boundary_size
- membership[v] = true iff v ∈ U
Fields§
§seed: VertexIdSeed vertex that defines the cut (always in U)
membership: RoaringBitmapMembership bitmap (vertex v is in U iff bit v is set)
boundary_size: u64Current boundary size |δ(U)|
hash: u64Hash for quick equality checks
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImplicitWitness
impl RefUnwindSafe for ImplicitWitness
impl Send for ImplicitWitness
impl Sync for ImplicitWitness
impl Unpin for ImplicitWitness
impl UnwindSafe for ImplicitWitness
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
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