ocaml project semester7
Find a file
2020-12-12 17:23:29 +01:00
.github/workflows Add github actions workflow 2020-11-02 18:01:44 +01:00
.vscode Enable auto-indent on file save 2019-11-06 14:25:19 +01:00
graphs basic and advanced bipartite matching working 2020-12-10 19:25:16 +01:00
src biais 2020-12-11 13:34:04 +01:00
.gitignore Add gitignore 2020-11-02 12:52:43 +01:00
.merlin Add merlin configuration 2019-11-06 13:49:12 +01:00
_tags makefile&co 2020-12-06 13:58:21 +01:00
Makefile biais 2020-12-11 13:34:04 +01:00
README.md Mettre à jour 'README.md' 2020-12-12 17:23:29 +01:00

Bi-partite matching based on a Gusacker Gowen algorithm with a Bellman Ford algorithm to search the shortest path. This project contains some simple configuration files to facilitate editing Ocaml in VSCode.

To use, you should install the OCaml extension in VSCode. Other extensions might work as well but make sure there is only one installed. 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
  • automatic indentation on file save

A makefile provides some useful commands:

  • make build to compile an algorithm which will accept an advanced file entry. This creates an ftest_advanced.native executable.
  • make advanced to compile an algorithm which will accept an advanced file entry. This creates an ftest_advanced.native executable.
  • make basic to compile an algorithm which will accept a basic file entry. This creates an ftest_basic.native executable.
  • make demo_advanced to run the ftest_advanced program with some arguments
  • make demo_basic to run the ftest_basic program with some arguments
  • make format to indent the entire project
  • make edit to open the project in VSCode
  • make clean to 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).