Struct pathfinding::EdmondsKarp [] [src]

pub struct EdmondsKarp<C> { /* fields omitted */ }

Structure holding Edmonds-Karp algorithm internal variables. This is not supposed to be manipulated from outside and must be treated as opaque.

Methods

impl<C> EdmondsKarp<C> where
    C: Zero + Signed + Bounded + PartialOrd + Copy
[src]

[src]

Create a new EdmondsKarp structure. - size is the size of each dimension of the the capacities square matrix. - source is the source node (the origin of the flow). - sink is the sink node (the target of the flow).

[src]

Set a capacity and return true if this caused the existing flows to be reset.

[src]

Reset all flows unconditionally because capacities have changed.

[src]

Reset all flows in case capacities have been reduced to below the existing flow. Return true if a reset has been performed since the last computation.

[src]

Reset all flows in case the given capacity has been reduced to below the existing flow value. Return true if a reset has been performed since the last computation.

[src]

Reset all flows in case any of the given capacity has been reduced to below the existing flow value. Return true if a reset has been performed since the last computation.

[src]

Compute the maximum flow.