ocaml-containers/3.6/containers-data/CCKTree/Dot/index.html
2021-10-18 22:33:12 -04:00

2 lines
No EOL
7.6 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Dot (containers-data.CCKTree.Dot)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.0.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> <a href="../../index.html">containers-data</a> &#x00BB; <a href="../index.html">CCKTree</a> &#x00BB; Dot</nav><header class="odoc-preamble"><h1>Module <code><span>CCKTree.Dot</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type" id="type-attribute" class="anchored"><a href="#type-attribute" class="anchor"></a><code><span><span class="keyword">type</span> attribute</span><span> = </span><span>[ </span></code><table><tr id="type-attribute.Color" class="anchored"><td class="def constructor"><a href="#type-attribute.Color" class="anchor"></a><code><span>| </span></code><code><span>`Color <span class="keyword">of</span> string</span></code></td></tr><tr id="type-attribute.Shape" class="anchored"><td class="def constructor"><a href="#type-attribute.Shape" class="anchor"></a><code><span>| </span></code><code><span>`Shape <span class="keyword">of</span> string</span></code></td></tr><tr id="type-attribute.Weight" class="anchored"><td class="def constructor"><a href="#type-attribute.Weight" class="anchor"></a><code><span>| </span></code><code><span>`Weight <span class="keyword">of</span> int</span></code></td></tr><tr id="type-attribute.Style" class="anchored"><td class="def constructor"><a href="#type-attribute.Style" class="anchor"></a><code><span>| </span></code><code><span>`Style <span class="keyword">of</span> string</span></code></td></tr><tr id="type-attribute.Label" class="anchored"><td class="def constructor"><a href="#type-attribute.Label" class="anchor"></a><code><span>| </span></code><code><span>`Label <span class="keyword">of</span> string</span></code></td></tr><tr id="type-attribute.Id" class="anchored"><td class="def constructor"><a href="#type-attribute.Id" class="anchor"></a><code><span>| </span></code><code><span>`Id <span class="keyword">of</span> string</span></code></td><td class="def-doc"><span class="comment-delim">(*</span><p>Unique ID in the graph. Allows sharing.</p><span class="comment-delim">*)</span></td></tr><tr id="type-attribute.Other" class="anchored"><td class="def constructor"><a href="#type-attribute.Other" class="anchor"></a><code><span>| </span></code><code><span>`Other <span class="keyword">of</span> string * string</span></code></td></tr></table><code><span> ]</span></code></div><div class="spec-doc"><p>Dot attributes for nodes</p></div></div><div class="odoc-spec"><div class="spec type" id="type-graph" class="anchored"><a href="#type-graph" class="anchor"></a><code><span><span class="keyword">type</span> graph</span><span> = string * <span><span><span><a href="#type-attribute">attribute</a> list</span> <a href="../index.html#type-t">t</a></span> list</span></span></code></div><div class="spec-doc"><p>A dot graph is a name, plus a list of trees labelled with attributes</p></div></div><div class="odoc-spec"><div class="spec value" id="val-mk_id" class="anchored"><a href="#val-mk_id" class="anchor"></a><code><span><span class="keyword">val</span> mk_id : <span><span><span>(<span class="type-var">'a</span>, <span class="xref-unresolved">Stdlib</span>.Buffer.t, unit, <a href="#type-attribute">attribute</a>)</span> <span class="xref-unresolved">Stdlib</span>.format4</span> <span class="arrow">&#45;&gt;</span></span> <span class="type-var">'a</span></span></code></div><div class="spec-doc"><p>Using a formatter string, build an ID.</p></div></div><div class="odoc-spec"><div class="spec value" id="val-mk_label" class="anchored"><a href="#val-mk_label" class="anchor"></a><code><span><span class="keyword">val</span> mk_label : <span><span><span>(<span class="type-var">'a</span>, <span class="xref-unresolved">Stdlib</span>.Buffer.t, unit, <a href="#type-attribute">attribute</a>)</span> <span class="xref-unresolved">Stdlib</span>.format4</span> <span class="arrow">&#45;&gt;</span></span> <span class="type-var">'a</span></span></code></div><div class="spec-doc"><p>Using a formatter string, build a label.</p></div></div><div class="odoc-spec"><div class="spec value" id="val-make" class="anchored"><a href="#val-make" class="anchor"></a><code><span><span class="keyword">val</span> make : <span>name:string <span class="arrow">&#45;&gt;</span></span> <span><span><span><span><a href="#type-attribute">attribute</a> list</span> <a href="../index.html#type-t">t</a></span> list</span> <span class="arrow">&#45;&gt;</span></span> <a href="#type-graph">graph</a></span></code></div></div><div class="odoc-spec"><div class="spec value" id="val-singleton" class="anchored"><a href="#val-singleton" class="anchor"></a><code><span><span class="keyword">val</span> singleton : <span>name:string <span class="arrow">&#45;&gt;</span></span> <span><span><span><a href="#type-attribute">attribute</a> list</span> <a href="../index.html#type-t">t</a></span> <span class="arrow">&#45;&gt;</span></span> <a href="#type-graph">graph</a></span></code></div></div><div class="odoc-spec"><div class="spec value" id="val-pp_single" class="anchored"><a href="#val-pp_single" class="anchor"></a><code><span><span class="keyword">val</span> pp_single : <span>string <span class="arrow">&#45;&gt;</span></span> <span><span><span><a href="#type-attribute">attribute</a> list</span> <a href="../index.html#type-t">t</a></span> <a href="../index.html#type-printer">printer</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value" id="val-pp" class="anchored"><a href="#val-pp" class="anchor"></a><code><span><span class="keyword">val</span> pp : <span><a href="#type-graph">graph</a> <a href="../index.html#type-printer">printer</a></span></span></code></div><div class="spec-doc"><p>Printer to DOT with indentation, etc.</p><ul class="at-tags"><li class="since"><span class="at-tag">since</span> 0.6.1</li></ul></div></div><div class="odoc-spec"><div class="spec value" id="val-print_to_file" class="anchored"><a href="#val-print_to_file" class="anchor"></a><code><span><span class="keyword">val</span> print_to_file : <span>string <span class="arrow">&#45;&gt;</span></span> <span><a href="#type-graph">graph</a> <span class="arrow">&#45;&gt;</span></span> unit</span></code></div><div class="spec-doc"><p><code>print_to_file filename g</code> prints <code>g</code> into a file whose name is <code>filename</code>.</p><ul class="at-tags"><li class="since"><span class="at-tag">since</span> 0.6.1</li></ul></div></div><div class="odoc-spec"><div class="spec value" id="val-to_file" class="anchored"><a href="#val-to_file" class="anchor"></a><code><span><span class="keyword">val</span> to_file : <span>?name:string <span class="arrow">&#45;&gt;</span></span> <span>string <span class="arrow">&#45;&gt;</span></span> <span><span><span><span><a href="#type-attribute">attribute</a> list</span> <a href="../index.html#type-t">t</a></span> list</span> <span class="arrow">&#45;&gt;</span></span> unit</span></code></div><div class="spec-doc"><p><code>to_file filename trees</code> makes a graph out of the trees, opens the file <code>filename</code> and prints the graph into the file.</p><ul class="at-tags"><li class="parameter"><span class="at-tag">parameter</span> <span class="value">name</span> <p>name of the graph.</p></li></ul><ul class="at-tags"><li class="since"><span class="at-tag">since</span> 0.6.1</li></ul></div></div></div></body></html>