Network flow simplex algorithm written in OCaml because why not?
Make sure you have installed OCaml first. After installing OCaml, you should be able to compile the code as follows:
ocamlopt -o network_flow network_flow.ml
And then execute the output:
./network_flow