package catala
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Compiler and library for the literate programming language for tax code specification
Install
dune-project
Dependency
Authors
Maintainers
Sources
1.1.0.tar.gz
md5=ec7dda88c5f7f371d2a35874cdae2a10
sha512=7cedccfbe5330992d5730441d6ba7b97446237ff5bb4579498a167f2319ec03e8fae50b7f80e3abe96833744b61ffd10719ce0c3e4c144893a4b7adc77e91b56
doc/src/catala.catala_utils/graphs.ml.html
Source file graphs.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26module JSON_Graph (V : sig include Graph.Sig.COMPARABLE val format : Format.formatter -> t -> unit end) (G : Graph.Sig.G with type V.t = V.t) = struct let graph_to_json g = let nodes = G.fold_vertex (fun v acc -> (string_of_int (G.V.hash v), `String (Format.asprintf "%a" V.format v)) :: acc) g [] in let nodes = `Assoc nodes in let edges = G.fold_edges (fun v1 v2 acc -> `Assoc ["from", `Int (V.hash v1); "to", `Int (V.hash v2)] :: acc) g [] in let edges = `List edges in `Assoc ["nodes", nodes; "edges", edges] end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>