Struct rs_graph::mcf::simplex::NetworkSimplex[][src]

pub struct NetworkSimplex<'a, G, F> { /* fields omitted */ }

Implementations

impl<'a, G, F> NetworkSimplex<'a, G, F> where
    G: IndexDigraph<'a>,
    F: NumCast + NumAssign + Signed + Ord + Copy + FromPrimitive
[src]

pub fn num_iterations(&self) -> usize[src]

Trait Implementations

impl<'a, G, F> MinCostFlow<'a> for NetworkSimplex<'a, G, F> where
    G: IndexDigraph<'a>,
    F: Bounded + NumCast + NumAssign + Ord + Copy + FromPrimitive + Signed
[src]

type Graph = G

type Flow = F

fn value(&self) -> Self::Flow[src]

Return the value of the latest computed flow value.

fn flow(&self, a: <Self::Graph as GraphType<'a>>::Edge) -> Self::Flow[src]

The flow of an Edge.

fn flow_vec(&self) -> EdgeVec<'a, &'a Self::Graph, Self::Flow>[src]

The flow as vector.

fn solve(&mut self) -> SolutionState[src]

Solve the maxflow problem.

The method solves the max flow problem from the source nodes src to the sink node snk with the given upper bounds on the edges.

Auto Trait Implementations

impl<'a, G, F> RefUnwindSafe for NetworkSimplex<'a, G, F> where
    F: RefUnwindSafe,
    G: RefUnwindSafe

impl<'a, G, F> Send for NetworkSimplex<'a, G, F> where
    F: Send,
    G: Sync

impl<'a, G, F> Sync for NetworkSimplex<'a, G, F> where
    F: Sync,
    G: Sync

impl<'a, G, F> Unpin for NetworkSimplex<'a, G, F> where
    F: Unpin

impl<'a, G, F> UnwindSafe for NetworkSimplex<'a, G, F> where
    F: UnwindSafe,
    G: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.