We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83412ae commit 7100076Copy full SHA for 7100076
tests/test_149.ml
@@ -1,7 +1,13 @@
1
2
(* Issue #149 *)
3
4
-module G = Graph.Persistent.Digraph.Concrete(String)
+module G = Graph.Persistent.Digraph.Concrete(
5
+ struct
6
+ type t = string
7
+ let compare = compare
8
+ let hash = Hashtbl.hash
9
+ let equal = (=)
10
+ end)
11
12
let g0 = G.empty
13
let g1 = G.add_edge g0 "a" "b"
@@ -12,4 +18,3 @@ module Topo = Graph.Topological.Make_stable(G)
18
19
let l = Topo.fold (fun v l -> v :: l) g []
14
20
let () = assert (l = ["b"; "c"; "a"])
15
-
0 commit comments