[−][src]Struct rs_graph::dimacs::maxflow::Instance
A maxflow instance.
Fields
graph: G
The graph.
src: N
The source node.
snk: N
The sink node.
upper: Vec<F>
The upper bounds.
Methods
impl<G, F, N> Instance<G, F, N> where
G: for<'a> IndexGraph<'a, Node = N> + Buildable,
F: FromPrimitive,
N: Copy + Eq,
[src]
G: for<'a> IndexGraph<'a, Node = N> + Buildable,
F: FromPrimitive,
N: Copy + Eq,
pub fn read(fname: &str) -> Result<Self, DimacsError>
[src]
Read DIMACS file and return instance.
fname
is the name of the file to be read
pub fn read_from_buf<R>(buf: &mut R) -> Result<Self, DimacsError> where
R: BufRead,
[src]
R: BufRead,
Read DIMACS file from a buffered reader and return instance.
buf
the buffer with the file content
Auto Trait Implementations
impl<G, F, N> RefUnwindSafe for Instance<G, F, N> where
F: RefUnwindSafe,
G: RefUnwindSafe,
N: RefUnwindSafe,
F: RefUnwindSafe,
G: RefUnwindSafe,
N: RefUnwindSafe,
impl<G, F, N> Send for Instance<G, F, N> where
F: Send,
G: Send,
N: Send,
F: Send,
G: Send,
N: Send,
impl<G, F, N> Sync for Instance<G, F, N> where
F: Sync,
G: Sync,
N: Sync,
F: Sync,
G: Sync,
N: Sync,
impl<G, F, N> Unpin for Instance<G, F, N> where
F: Unpin,
G: Unpin,
N: Unpin,
F: Unpin,
G: Unpin,
N: Unpin,
impl<G, F, N> UnwindSafe for Instance<G, F, N> where
F: UnwindSafe,
G: UnwindSafe,
N: UnwindSafe,
F: UnwindSafe,
G: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,