pub struct MaxFlow {
pub value: f64,
pub flow: Vec<f64>,
pub cut: Vec<EdgeId>,
pub partition: Vec<VertexId>,
pub partition2: Vec<VertexId>,
pub stats: MaxflowStats,
}Expand description
A maximum flow between two vertices, as computed by Graph::maxflow.
Fields§
§value: f64The value of the maximum flow, i.e. the net amount entering the target.
flow: Vec<f64>The flow on each edge, indexed by edge id.
In undirected graphs the sign encodes the direction: a positive value means the flow goes from the smaller vertex id to the larger one, a negative value the other way round.
cut: Vec<EdgeId>Ids of the edges of the minimum cut corresponding to this flow; their
capacities sum up to value.
partition: Vec<VertexId>The side of the minimum cut containing the source.
partition2: Vec<VertexId>The side of the minimum cut containing the target.
stats: MaxflowStatsOperation counts of the push-relabel solver.
Trait Implementations§
impl StructuralPartialEq for MaxFlow
Auto Trait Implementations§
impl Freeze for MaxFlow
impl RefUnwindSafe for MaxFlow
impl Send for MaxFlow
impl Sync for MaxFlow
impl Unpin for MaxFlow
impl UnsafeUnpin for MaxFlow
impl UnwindSafe for MaxFlow
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