Graph.FlowAlgorithms on flows
The following flow algorithms only apply to networks, that are directed graphs together with a source (a 0 in-degree vertex) and a terminal (a 0 out-degree vertex).
module type FLOW = sig ... endSignature for edges' flow.
module type G_GOLDBERG_TARJAN = sig ... endMinimal graph signature for Goldberg-Tarjan. Sub-signature of Sig.G.
module Goldberg_Tarjan (G : G_GOLDBERG_TARJAN) (F : FLOW with type label = G.E.label) : sig ... endmodule type G_FORD_FULKERSON = sig ... endMinimal digraph signature for Ford-Fulkerson. Sub-signature of Sig.G.
module type FLOWMIN = sig ... endmodule Ford_Fulkerson (G : G_FORD_FULKERSON) (F : FLOWMIN with type label = G.E.label) : sig ... end