pub struct CutResult {
pub cut: usize,
pub ratio_cut: f64,
pub normalised_cut: f64,
}Expand description
Result of a hyperedge cut computation.
Fields§
§cut: usizeRaw hyperedge cut (number of hyperedges crossing the partition).
ratio_cut: f64Ratio cut: cut / min(|S|, |V\S|).
normalised_cut: f64Normalised cut: cut/vol(S) + cut/vol(V\S) where vol(X) = Σ_v deg(v).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CutResult
impl RefUnwindSafe for CutResult
impl Send for CutResult
impl Sync for CutResult
impl Unpin for CutResult
impl UnsafeUnpin for CutResult
impl UnwindSafe for CutResult
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