pub enum LocalKCutResult {
Found {
witness: WitnessHandle,
cut_value: u64,
},
NoneInLocality,
}Expand description
Result of a local k-cut search
Either finds a cut within budget or reports that no such cut exists in the local region around the seed vertices.
Variants§
Found
Found a cut with value ≤ budget_k
The witness certifies the cut and can be used to verify correctness or reconstruct the partition.
Fields
§
witness: WitnessHandleHandle to the witness certifying this cut
NoneInLocality
No cut ≤ budget_k found in the local region
This does not mean no such cut exists globally, only that none was found within the search radius from the seeds.
Trait Implementations§
Source§impl Clone for LocalKCutResult
impl Clone for LocalKCutResult
Source§fn clone(&self) -> LocalKCutResult
fn clone(&self) -> LocalKCutResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LocalKCutResult
impl RefUnwindSafe for LocalKCutResult
impl Send for LocalKCutResult
impl Sync for LocalKCutResult
impl Unpin for LocalKCutResult
impl UnwindSafe for LocalKCutResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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