pub struct MinCutBuilder { /* private fields */ }Expand description
Builder for DynamicMinCut
Implementations§
Source§impl MinCutBuilder
impl MinCutBuilder
Sourcepub fn approximate(self, epsilon: f64) -> Self
pub fn approximate(self, epsilon: f64) -> Self
Use approximate algorithm with given epsilon
Sourcepub fn max_cut_size(self, size: usize) -> Self
pub fn max_cut_size(self, size: usize) -> Self
Set maximum cut size for exact algorithm
Sourcepub fn build(self) -> Result<DynamicMinCut>
pub fn build(self) -> Result<DynamicMinCut>
Build the minimum cut structure
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MinCutBuilder
impl RefUnwindSafe for MinCutBuilder
impl Send for MinCutBuilder
impl Sync for MinCutBuilder
impl Unpin for MinCutBuilder
impl UnwindSafe for MinCutBuilder
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