Show / Hide Table of Contents

    Class FordFulkersonMaxFlow<T, W>

    A ford-fulkerson max flox implementation on weighted directed graph using adjacency list representation of graph and residual graph.

    Inheritance
    Object
    FordFulkersonMaxFlow<T, W>
    Namespace: Advanced.Algorithms.Graph
    Assembly: Advanced.Algorithms.dll
    Syntax
    public class FordFulkersonMaxFlow<T, W> : object where W : IComparable
    Type Parameters
    Name Description
    T
    W

    Constructors

    FordFulkersonMaxFlow(IFlowOperators<W>)

    Declaration
    public FordFulkersonMaxFlow(IFlowOperators<W> operator)
    Parameters
    Type Name Description
    IFlowOperators<W> operator

    Methods

    ComputeMaxFlow(IDiGraph<T>, T, T)

    Compute max flow by searching a path and then augmenting the residual graph until no more path exists in residual graph with possible flow.

    Declaration
    public W ComputeMaxFlow(IDiGraph<T> graph, T source, T sink)
    Parameters
    Type Name Description
    IDiGraph<T> graph
    T source
    T sink
    Returns
    Type Description
    W

    ComputeMaxFlowAndReturnFlowPath(IDiGraph<T>, T, T)

    Return all flow Paths.

    Declaration
    public List<List<T>> ComputeMaxFlowAndReturnFlowPath(IDiGraph<T> graph, T source, T sink)
    Parameters
    Type Name Description
    IDiGraph<T> graph
    T source
    T sink
    Returns
    Type Description
    List<List<T>>
    Back to top Generated by DocFX