manabeai/ac-library-mbt/mincostflow does not have a README file

    McfEdge

    pub struct McfEdge[Cap, Cost] {
    from : Int
    to : Int
    cap : Cap
    flow : Cap
    cost : Cost
    } derive(Eq,
    Debug
    )

    Immutable snapshot of an original edge.

    McfGraph

    pub struct McfGraph[_, _] {
    // private fields
    } derive(
    Debug
    )

    Minimum-cost flow with nonnegative original costs. Capacity and cost can independently be Int or Int64.

    McfGraph::add_edge

    fn[C :
    FlowInt
    , W :
    FlowInt
    ] McfGraph::add_edge(self : McfGraph[C, W], from : Int, to : Int, cap : C, cost : W) -> Int

    McfGraph::flow

    fn[C :
    FlowInt
    , W :
    FlowInt
    ] McfGraph::flow(self : McfGraph[C, W], s : Int, t : Int, flow_limit? : C) -> (C, W)

    McfGraph::new

    fn[C, W] McfGraph::new(n : Int) -> McfGraph[C, W]

    McfGraph::slope

    fn[C :
    FlowInt
    , W :
    FlowInt
    ] McfGraph::slope(self : McfGraph[C, W], s : Int, t : Int, flow_limit? : C) -> Array[(C, W)]

    Piecewise-linear minimum cost curve, starting at (0,0), with collinear points merged. Call flow/slope at most once per graph. Total flow/cost must fit the chosen types.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io