package lascar
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=e33fd94f167bd7bc69f30d7a550226126692a00dac9b29c28ff0ff0aca7d7a21
sha512=98fe84ea351a288d371490f002c52c2e3637841f7fafadb1c3a1acb82befc436bbc6321b1c37fb1e2121b595e7fcb33da45510f3b623006a1d1b56d905313058
doc/lascar.utils/Utils/Tree/module-type-S/index.html
Module type Tree.S
Source
Output signature of the functor Tree.Make
.
fold f z t
is f (... (f (f z n1) n2) ...) nn
, where n1, ..., nn
are the nodes of t
. The order in which the nodes are presented is unspecified.
val dot_output : string -> string -> ?options:Dot.graph_style list -> t -> unit
dot_output name fname t
writes a .dot representation of tree t
with name name
in file fname
. The aspect of the tree can be adjusted with the options
optional argument (see Dot.graph_style
).
val dot_view :
string ->
?options:Dot.graph_style list ->
?dir:string ->
?cmd:string ->
t ->
int
dot_view name t
writes a .dot representation of t
in file dir/name.dot
and opens it with Graphviz. The output directory dir
is specified with the dir
optional argument (default: "/tmp"). The command for launching Graphviz is specified with the cmd
optional argument (default: "open -a Graphviz"). The options
optional argument is the same than defined for dot_output
. The function returns the exit code of the corresponding process.