Struct pathfinding::directed::edmonds_karp::SparseCapacity [−][src]
pub struct SparseCapacity<C> { /* fields omitted */ }
Sparse capacity and flow data.
Trait Implementations
impl<C: Clone> Clone for SparseCapacity<C>
[src]
impl<C: Clone> Clone for SparseCapacity<C>
[src]fn clone(&self) -> SparseCapacity<C>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Copy + Zero + Signed + Eq + Ord + Bounded> EdmondsKarp<C> for SparseCapacity<C>
[src]
impl<C: Copy + Zero + Signed + Eq + Ord + Bounded> EdmondsKarp<C> for SparseCapacity<C>
[src]fn new(size: usize, source: usize, sink: usize) -> Self
[src]
#[must_use]fn from_matrix(source: usize, sink: usize, capacities: Matrix<C>) -> Self
[src]
#[must_use]
fn from_matrix(source: usize, sink: usize, capacities: Matrix<C>) -> Selffn common(&self) -> &Common<C>
[src]
fn common_mut(&mut self) -> &mut Common<C>
[src]
fn residual_successors(&self, from: usize) -> Vec<(usize, C)>
[src]
fn residual_capacity(&self, from: usize, to: usize) -> C
[src]
fn flow(&self, from: usize, to: usize) -> C
[src]
fn flows(&self) -> Vec<((usize, usize), C)>
[src]
fn add_flow(&mut self, from: usize, to: usize, capacity: C)
[src]
fn add_residual_capacity(&mut self, from: usize, to: usize, capacity: C)
[src]
fn flows_from(&self, n: usize) -> Vec<usize>
[src]
#[must_use]fn from_vec(source: usize, sink: usize, capacities: Vec<C>) -> Self where
Self: Sized,
[src]
#[must_use]
fn from_vec(source: usize, sink: usize, capacities: Vec<C>) -> Self whereSelf: Sized,
fn size(&self) -> usize
[src]
fn source(&self) -> usize
[src]
fn sink(&self) -> usize
[src]
fn set_capacity(&mut self, from: usize, to: usize, capacity: C)
[src]
fn total_capacity(&self) -> C
[src]
fn set_total_capacity(&mut self, capacity: C)
[src]
fn omit_detailed_flows(&mut self)
[src]
fn detailed_flows(&self) -> bool
[src]
fn augment(&mut self) -> EKFlows<usize, C>
[src]
fn cancel_flow(&mut self, from: usize, to: usize, capacity: C)
[src]
impl<C: Send> Send for SparseCapacity<C>
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for SparseCapacity<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Sync for SparseCapacity<C> where
C: Sync,
C: Sync,
impl<C> Unpin for SparseCapacity<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for SparseCapacity<C> where
C: RefUnwindSafe + UnwindSafe,
C: RefUnwindSafe + UnwindSafe,