pub struct MaxCutResult {
pub partition: Vec<bool>,
pub cut_value: usize,
}Expand description
Result of maximum_cut.
Fields§
§partition: Vec<bool>The partition: partition[v] is true if vertex v is in
set S, false if in set V\S.
cut_value: usizeNumber of edges crossing the cut.
Trait Implementations§
Source§impl Clone for MaxCutResult
impl Clone for MaxCutResult
Source§fn clone(&self) -> MaxCutResult
fn clone(&self) -> MaxCutResult
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 MaxCutResult
impl RefUnwindSafe for MaxCutResult
impl Send for MaxCutResult
impl Sync for MaxCutResult
impl Unpin for MaxCutResult
impl UnsafeUnpin for MaxCutResult
impl UnwindSafe for MaxCutResult
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