package lascar
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=343190b9c765655e787758db86a82818404dda18b4d2806283b4bde3ced91d26
sha512=2b6534ac438d574228d127b3b4e2cfec17b8b95e95124297c8da351caf34de2bb4ec8a31028a1470ba7f42aa932257293d021140a5a1c2642d1a60a8123d00a0
doc/lascar.utils/Utils/Tree/module-type-S/index.html
Module type Tree.SSource
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 -> unitdot_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 ->
intdot_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.