graph-toolkit
    Preparing search index...

    Interface MinCostFlowOptions

    interface MinCostFlowOptions {
        amount?: number;
        capacity: (edge: Edge) => number;
    }
    Index
    amount?: number

    Flow to send; default is as much as possible (min-cost maximum flow).

    capacity: (edge: Edge) => number

    Capacity of an arc; the arc weight is its per-unit cost.