pub enum DimacsProblem {
Max {
source: Option<VertexId>,
target: Option<VertexId>,
capacity: Vec<f64>,
},
Edge {
labels: Vec<i64>,
},
}Expand description
The problem described by a DIMACS file, see DimacsFlow.
Variants§
Max
A maximum flow problem (p max).
Fields
§
source: Option<VertexId>The source vertex (0-based igraph id; DIMACS ids start from 1),
None if the file has no n <id> s line.
Edge
An “edge” problem (p edge), e.g. a graph coloring instance (see
Graph::vertex_coloring_greedy to solve one).
Trait Implementations§
Source§impl Clone for DimacsProblem
impl Clone for DimacsProblem
Source§fn clone(&self) -> DimacsProblem
fn clone(&self) -> DimacsProblem
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 DimacsProblem
impl Debug for DimacsProblem
Source§impl PartialEq for DimacsProblem
impl PartialEq for DimacsProblem
Source§fn eq(&self, other: &DimacsProblem) -> bool
fn eq(&self, other: &DimacsProblem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DimacsProblem
Auto Trait Implementations§
impl Freeze for DimacsProblem
impl RefUnwindSafe for DimacsProblem
impl Send for DimacsProblem
impl Sync for DimacsProblem
impl Unpin for DimacsProblem
impl UnsafeUnpin for DimacsProblem
impl UnwindSafe for DimacsProblem
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