pub struct ResidualGraph {
pub graph: Graph,
pub capacity: Vec<f64>,
}Expand description
The residual network of a flow, see Graph::residual_graph.
Fields§
§graph: GraphThe directed residual graph, on the same vertex set as the original.
capacity: Vec<f64>Residual capacity (capacity minus flow) of each edge of
graph, in edge-id order.
Trait Implementations§
Source§impl Clone for ResidualGraph
impl Clone for ResidualGraph
Source§fn clone(&self) -> ResidualGraph
fn clone(&self) -> ResidualGraph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResidualGraph
impl Debug for ResidualGraph
Source§impl PartialEq for ResidualGraph
impl PartialEq for ResidualGraph
Source§fn eq(&self, other: &ResidualGraph) -> bool
fn eq(&self, other: &ResidualGraph) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResidualGraph
Auto Trait Implementations§
impl !Sync for ResidualGraph
impl Freeze for ResidualGraph
impl RefUnwindSafe for ResidualGraph
impl Send for ResidualGraph
impl Unpin for ResidualGraph
impl UnsafeUnpin for ResidualGraph
impl UnwindSafe for ResidualGraph
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