1
Ocamldot generates program dependency graphs for ocaml programs.
3
The dependency graph output by ocamldot can be rendered by a separate
4
program, dot. Dot is freely available from
6
http://www.research.att.com/sw/tools/graphviz/
8
Ocamldot is designed to process the output of ocamldep. A typical use
11
ocamldep *.ml | ocamldot > dep.dot
15
ocamldep *.ml > .depend
16
ocamldot .depend > dep.dot
18
This will output a dot graph into the file dep.dot. You can then use
19
the program dotty to view, edit, and print the graph.
21
Ocamldot has the following options:
23
-fullgraph draw the full graph (default is to draw only the kernel)
24
-landscape output in landscape format (default is portrait)
25
-lr draw graph from left to right (default is top to bottom)
26
-r <r> use <r> as a root in the graph; nodes reachable from <r>
29
(The transitive kernel of a dag is the smallest subset of the dag
30
whose transitive closure is the same as the transitive closure of the
31
dag. For example, the kernel of A->B, A->C, B->C is just the two