pub struct Cut {
pub value: f64,
pub cut: Vec<EdgeId>,
pub partition: Vec<VertexId>,
pub partition2: Vec<VertexId>,
}Expand description
An edge cut splitting the vertices into two sides, as returned by
Graph::st_mincut and Graph::mincut.
Fields§
§value: f64Total capacity of the edges in the cut.
cut: Vec<EdgeId>Ids of the edges in the cut.
partition: Vec<VertexId>Vertices of the first side (for s-t cuts, the side of the source).
partition2: Vec<VertexId>Vertices of the second side (for s-t cuts, the side of the target).
Trait Implementations§
impl StructuralPartialEq for Cut
Auto Trait Implementations§
impl Freeze for Cut
impl RefUnwindSafe for Cut
impl Send for Cut
impl Sync for Cut
impl Unpin for Cut
impl UnsafeUnpin for Cut
impl UnwindSafe for Cut
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