Struct mcmf::Path[][src]

pub struct Path<T: Clone + Ord> {
    pub flows: Vec<Flow<T>>,
}

Represents a path from the source to the sink in a solution to the minimum cost maximum flow problem.

Fields

Methods

impl<T> Path<T> where
    T: Clone + Ord
[src]

A list of all the vertices in the path. Always begins with Vertex::Source and ends with Vertex::Sink.

A list of all the edges in the path.

Returns the total cost of the path. path.cost() is always a multiple of path.amount().

Returns the amount of flow in the path.

Returns the number of edges in the path.

Auto Trait Implementations

impl<T> Send for Path<T> where
    T: Send

impl<T> Sync for Path<T> where
    T: Sync