Base project for the functional programming course
- add export function to gfile.ml and .mli - add commands of Graphviz to README.md - add a commented implementation to ftest.ml |
||
|---|---|---|
| .github/workflows | ||
| .vscode | ||
| graphs | ||
| src | ||
| .gitignore | ||
| .merlin | ||
| dune-project | ||
| Makefile | ||
| README.md | ||
Base project for Ocaml project on Ford-Fulkerson. This project contains some simple configuration files to facilitate editing Ocaml in VSCode.
To use, you should install the OCaml Platform extension in VSCode.
Then open VSCode in the root directory of this repository (command line: code path/to/ocaml-maxflow-project).
Features :
- full compilation as VSCode build task (Ctrl+Shift+b)
- highlights of compilation errors as you type
- code completion
- view of variable types
A Makefile provides some useful commands:
make buildto compile. This creates anftest.exeexecutablemake demoto run theftestprogram with some argumentsmake formatto indent the entire projectmake editto open the project in VSCodemake cleanto remove build artifacts
In case of trouble with the VSCode extension (e.g. the project does not build, there are strange mistakes), a common workaround is to (1) close vscode, (2) make clean, (3) make build and (4) reopen vscode (make edit).
Graphviz :
dot path/to/graphviz.txt -T > out.png
open out.png