pub struct SparseCapacity<C> { /* private fields */ }
Expand description

Sparse capacity and flow data.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Create a new empty structure. Read more
Create a new populated structure. Read more
Common data.
Mutable common data.
List of successors with positive residual capacity and this capacity.
Residual capacity between two nodes.
Flow between two nodes.
All flows between nodes.
Add a given flow between two nodes. This should not be used directly. Read more
Add some residual capacity.
All positive flows starting from a node.
Create a new populated structure. Read more
Number of nodes.
Source.
Sink.
Set capacity between two nodes.
Get total capacity.
Set total capacity.
Do not request the detailed flows as a result. The returned flows will be an empty vector. Read more
Are detailed flows requested?
Compute the maximum flow.
Internal: cancel a flow capacity between two nodes.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.