pub struct StMinCuts {
pub value: f64,
pub cuts: Vec<Vec<u32>>,
pub partition1s: Vec<Vec<VertexId>>,
}Expand description
Result of all_st_mincuts.
cuts[i] and partition1s[i] describe the same minimum cut:
partition1s[i] is the source-side vertex set X (always contains
source, never target), and cuts[i] lists the ids of the
positive-flow edges leaving X (from ∈ X, to ∉ X). Every listed cut
has total capacity equal to value. Vertices within each
partition and edge ids within each cut are sorted ascending.
Fields§
§value: f64The minimum cut value (maximum source → target flow).
cuts: Vec<Vec<u32>>Edge-id list of each minimum cut, sorted ascending.
partition1s: Vec<Vec<VertexId>>Source-side vertex set generating each cut, sorted ascending.
Trait Implementations§
impl StructuralPartialEq for StMinCuts
Auto Trait Implementations§
impl Freeze for StMinCuts
impl RefUnwindSafe for StMinCuts
impl Send for StMinCuts
impl Sync for StMinCuts
impl Unpin for StMinCuts
impl UnsafeUnpin for StMinCuts
impl UnwindSafe for StMinCuts
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