Struct pathfinding::SparseCapacity [] [src]

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

Sparse capacity and flow data.

Methods

impl<C: Clone + Eq + Zero + Signed + Bounded + PartialOrd> SparseCapacity<C>
[src]

[src]

Create a new sparse structure.

Panics

This function panics when source or sink is greater or equal than size.

[src]

Create a new sparse structure.

Panics

This function panics when source or sink is greater or equal than the number of rows in the capacities matrix.

[src]

Create a new sparse structure.

Panics

This function panics when source or sink is greater or equal than the number of rows of the newly created square capacities matrix, or when the data is not square.

Trait Implementations

impl<C: Debug> Debug for SparseCapacity<C>
[src]

[src]

Formats the value using the given formatter.

impl<C: Clone + Zero + Signed + Eq + PartialOrd + Bounded> EdmondsKarp<C> for SparseCapacity<C>
[src]

[src]

Common data.

[src]

Mutable common data.

[src]

List of neighbours with positive residual capacity and this capacity.

[src]

Residual capacity between two nodes.

[src]

Flow between two nodes.

[src]

All flows between nodes.

[src]

Set capacity between two nodes. This might trigger a reset of the already computed flows. Read more

[src]

Add a given flow between two nodes. This should not be used directly. Read more

[src]

Reset the flows if needed.

[src]

Number of nodes.

[src]

Source.

[src]

Sink.

[src]

Get total capacity.

[src]

Set total capacity.

[src]

Do not request the detailed flows as a result. The returned flows will be an empty vector. Read more

[src]

Are detailed flows requested?

[src]

Compute the maximum flow.