pub struct DimacsFlow {
pub graph: Graph,
pub problem_name: String,
pub problem: DimacsProblem,
}Expand description
The content of a DIMACS flow file, as returned by
Graph::read_graph_dimacs_flow.
For a DimacsProblem::Max instance, pass the capacities to
Graph::maxflow, Graph::maxflow_value or Graph::st_mincut to
solve it.
Fields§
§graph: GraphThe graph.
problem_name: StringThe problem type string of the p line ("max" or "edge").
problem: DimacsProblemThe problem data.
Trait Implementations§
Source§impl Clone for DimacsFlow
impl Clone for DimacsFlow
Source§fn clone(&self) -> DimacsFlow
fn clone(&self) -> DimacsFlow
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 DimacsFlow
impl Debug for DimacsFlow
Source§impl PartialEq for DimacsFlow
impl PartialEq for DimacsFlow
Source§fn eq(&self, other: &DimacsFlow) -> bool
fn eq(&self, other: &DimacsFlow) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DimacsFlow
Auto Trait Implementations§
impl !Sync for DimacsFlow
impl Freeze for DimacsFlow
impl RefUnwindSafe for DimacsFlow
impl Send for DimacsFlow
impl Unpin for DimacsFlow
impl UnsafeUnpin for DimacsFlow
impl UnwindSafe for DimacsFlow
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