From 5151d5d7167cf7f49efbe8281458a2d46db6850e Mon Sep 17 00:00:00 2001 From: Leandro-rdz Date: Mon, 2 Dec 2024 09:59:35 +0100 Subject: [PATCH] feat : add tools files --- src/tools.ml | 7 +++++++ src/tools.mli | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 src/tools.ml create mode 100644 src/tools.mli diff --git a/src/tools.ml b/src/tools.ml new file mode 100644 index 0000000..e064a78 --- /dev/null +++ b/src/tools.ml @@ -0,0 +1,7 @@ + (* Yes, we have to repeat open Graph. *) +open Graph + +(* assert false is of type ∀α.α, so the type-checker is happy. *) +let clone_nodes _gr = assert false +let gmap _gr _f = assert false +(* Replace _gr and _f by gr and f when you start writing the real function. *) \ No newline at end of file diff --git a/src/tools.mli b/src/tools.mli new file mode 100644 index 0000000..8e6fb3d --- /dev/null +++ b/src/tools.mli @@ -0,0 +1,5 @@ +open Graph + +val clone_nodes: 'a graph -> 'b graph +val gmap: 'a graph -> ('a -> 'b) -> 'b graph +val add_arc: int graph -> id -> id -> int -> int graph