AtCoder::MaxFlow
Inherits Reference / Object
Implements atcoder::mf_graph.
Cap is always Int64.
mf = AtCoder::MaxFlow.new(3)
mf.add_edge(0, 1, 3)
mf.add_edge(1, 2, 1)
mf.add_edge(0, 2, 2)
mf.flow(0, 2) # => 3
Constructors
new(size : Int64)
SourceInstance methods
depths
Source