manabeai/ac-library-mbt/mincostflow does not have a README file
pub struct McfEdge[Cap, Cost] { from : Int to : Int cap : Cap flow : Cap cost : Cost} derive(Eq, @moonbitlang/core/debug.DebugDebug)
pub struct McfGraph[_, _] { // private fields} derive(@moonbitlang/core/debug.DebugDebug)
fn[C : @manabeai/ac-library-mbt/algebra.FlowIntFlowInt, W : @manabeai/ac-library-mbt/algebra.FlowIntFlowInt] McfGraph::add_edge(self : McfGraph[C, W], from : Int, to : Int, cap : C, cost : W) -> Int
fn[C : @manabeai/ac-library-mbt/algebra.FlowIntFlowInt, W : @manabeai/ac-library-mbt/algebra.FlowIntFlowInt] McfGraph::edges(self : McfGraph[C, W]) -> Array[McfEdge[C, W]]
fn[C : @manabeai/ac-library-mbt/algebra.FlowIntFlowInt, W : @manabeai/ac-library-mbt/algebra.FlowIntFlowInt] McfGraph::flow(self : McfGraph[C, W], s : Int, t : Int, flow_limit? : C) -> (C, W)
fn[C : @manabeai/ac-library-mbt/algebra.FlowIntFlowInt, W : @manabeai/ac-library-mbt/algebra.FlowIntFlowInt] McfGraph::get_edge(self : McfGraph[C, W], i : Int) -> McfEdge[C, W]
fn[C, W] McfGraph::new(n : Int) -> McfGraph[C, W]
fn[C : @manabeai/ac-library-mbt/algebra.FlowIntFlowInt, W : @manabeai/ac-library-mbt/algebra.FlowIntFlowInt] McfGraph::slope(self : McfGraph[C, W], s : Int, t : Int, flow_limit? : C) -> Array[(C, W)]
Install
A complete MoonBit port of AtCoder Library v1.6
Powered by MoonBit
© 2026 mooncakes.io