Struct pathfinding::directed::edmonds_karp::DenseCapacity [−][src]
pub struct DenseCapacity<C> { /* fields omitted */ }Dense capacity and flow data.
Trait Implementations
impl<C: Clone> Clone for DenseCapacity<C>[src]
impl<C: Clone> Clone for DenseCapacity<C>fn clone(&self) -> DenseCapacity<C>[src]
fn clone(&self) -> DenseCapacity<C>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<C: Debug> Debug for DenseCapacity<C>[src]
impl<C: Debug> Debug for DenseCapacity<C>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<C: Send> Send for DenseCapacity<C>[src]
impl<C: Send> Send for DenseCapacity<C>impl<C: Copy + Zero + Signed + Ord + Bounded> EdmondsKarp<C> for DenseCapacity<C>[src]
impl<C: Copy + Zero + Signed + Ord + Bounded> EdmondsKarp<C> for DenseCapacity<C>fn new(size: usize, source: usize, sink: usize) -> DenseCapacity<C>[src]
fn new(size: usize, source: usize, sink: usize) -> DenseCapacity<C>Create a new empty structure. Read more
fn from_matrix(
source: usize,
sink: usize,
capacities: Matrix<C>
) -> DenseCapacity<C>[src]
fn from_matrix(
source: usize,
sink: usize,
capacities: Matrix<C>
) -> DenseCapacity<C>Create a new populated structure. Read more
fn common(&self) -> &Common<C>[src]
fn common(&self) -> &Common<C>Common data.
fn common_mut(&mut self) -> &mut Common<C>[src]
fn common_mut(&mut self) -> &mut Common<C>Mutable common data.
fn residual_neighbours(&self, from: usize) -> Vec<(usize, C)>[src]
fn residual_neighbours(&self, from: usize) -> Vec<(usize, C)>List of neighbours with positive residual capacity and this capacity.
fn residual_capacity(&self, from: usize, to: usize) -> C[src]
fn residual_capacity(&self, from: usize, to: usize) -> CResidual capacity between two nodes.
fn flow(&self, from: usize, to: usize) -> C[src]
fn flow(&self, from: usize, to: usize) -> CFlow between two nodes.
fn flows(&self) -> Vec<((usize, usize), C)>[src]
fn flows(&self) -> Vec<((usize, usize), C)>All flows between nodes.
fn add_flow(&mut self, from: usize, to: usize, capacity: C)[src]
fn add_flow(&mut self, from: usize, to: usize, capacity: C)Add a given flow between two nodes. This should not be used directly. Read more
fn add_residual_capacity(&mut self, from: usize, to: usize, capacity: C)[src]
fn add_residual_capacity(&mut self, from: usize, to: usize, capacity: C)Add some residual capacity.
fn flows_from(&self, from: usize) -> Vec<usize>[src]
fn flows_from(&self, from: usize) -> Vec<usize>All positive flows starting from a node.
fn from_vec(source: usize, sink: usize, capacities: Vec<C>) -> Self where
Self: Sized, [src]
fn from_vec(source: usize, sink: usize, capacities: Vec<C>) -> Self where
Self: Sized, Create a new populated structure. Read more
fn size(&self) -> usize[src]
fn size(&self) -> usizeNumber of nodes.
fn source(&self) -> usize[src]
fn source(&self) -> usizeSource.
fn sink(&self) -> usize[src]
fn sink(&self) -> usizeSink.
fn set_capacity(&mut self, from: usize, to: usize, capacity: C)[src]
fn set_capacity(&mut self, from: usize, to: usize, capacity: C)Set capacity between two nodes.
fn total_capacity(&self) -> C[src]
fn total_capacity(&self) -> CGet total capacity.
fn set_total_capacity(&mut self, capacity: C)[src]
fn set_total_capacity(&mut self, capacity: C)Set total capacity.
fn omit_detailed_flows(&mut self)[src]
fn omit_detailed_flows(&mut self)Do not request the detailed flows as a result. The returned flows will be an empty vector. Read more
fn detailed_flows(&self) -> bool[src]
fn detailed_flows(&self) -> boolAre detailed flows requested?
fn augment(&mut self) -> EKFlows<usize, C>[src]
fn augment(&mut self) -> EKFlows<usize, C>Compute the maximum flow.
fn cancel_flow(&mut self, from: usize, to: usize, capacity: C)[src]
fn cancel_flow(&mut self, from: usize, to: usize, capacity: C)Internal: cancel a flow capacity between two nodes.
Auto Trait Implementations
impl<C> Sync for DenseCapacity<C> where
C: Sync,
impl<C> Sync for DenseCapacity<C> where
C: Sync,