mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
2 lines
No EOL
5.6 KiB
HTML
2 lines
No EOL
5.6 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Dot (containers-data.CCGraph.Dot)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">containers-data</a> » <a href="../index.html">CCGraph</a> » Dot</nav><h1>Module <code>CCGraph.Dot</code></h1></header><dl><dt class="spec type" id="type-attribute"><a href="#type-attribute" class="anchor"></a><code><span class="keyword">type</span> attribute</code> = <code>[ </code><table class="variant"><tr id="type-attribute.Color" class="anchored"><td class="def constructor"><a href="#type-attribute.Color" class="anchor"></a><code>| </code><code>`Color <span class="keyword">of</span> string</code></td></tr><tr id="type-attribute.Shape" class="anchored"><td class="def constructor"><a href="#type-attribute.Shape" class="anchor"></a><code>| </code><code>`Shape <span class="keyword">of</span> string</code></td></tr><tr id="type-attribute.Weight" class="anchored"><td class="def constructor"><a href="#type-attribute.Weight" class="anchor"></a><code>| </code><code>`Weight <span class="keyword">of</span> int</code></td></tr><tr id="type-attribute.Style" class="anchored"><td class="def constructor"><a href="#type-attribute.Style" class="anchor"></a><code>| </code><code>`Style <span class="keyword">of</span> string</code></td></tr><tr id="type-attribute.Label" class="anchored"><td class="def constructor"><a href="#type-attribute.Label" class="anchor"></a><code>| </code><code>`Label <span class="keyword">of</span> string</code></td></tr><tr id="type-attribute.Other" class="anchored"><td class="def constructor"><a href="#type-attribute.Other" class="anchor"></a><code>| </code><code>`Other <span class="keyword">of</span> string * string</code></td></tr></table><code> ]</code></dt><dd><p>Dot attribute</p></dd></dl><dl><dt class="spec type" id="type-vertex_state"><a href="#type-vertex_state" class="anchor"></a><code><span class="keyword">type</span> vertex_state</code></dt><dd><p>Hidden state associated to a vertex</p></dd></dl><dl><dt class="spec value" id="val-pp"><a href="#val-pp" class="anchor"></a><code><span class="keyword">val</span> pp : <span>tbl:<span><span>(<span class="type-var">'v</span>, <a href="index.html#type-vertex_state">vertex_state</a>)</span> <a href="../index.html#type-table">table</a></span></span> <span>-></span> <span>eq:<span>(<span class="type-var">'v</span> <span>-></span> <span class="type-var">'v</span> <span>-></span> bool)</span></span> <span>-></span> <span>?⁠attrs_v:<span>(<span class="type-var">'v</span> <span>-></span> <span><a href="index.html#type-attribute">attribute</a> list</span>)</span></span> <span>-></span> <span>?⁠attrs_e:<span>(<span class="type-var">'e</span> <span>-></span> <span><a href="index.html#type-attribute">attribute</a> list</span>)</span></span> <span>-></span> <span>?⁠name:string</span> <span>-></span> <span>graph:<span><span>(<span class="type-var">'v</span>, <span class="type-var">'e</span>)</span> <a href="../index.html#type-t">t</a></span></span> <span>-></span> Stdlib.Format.formatter <span>-></span> <span class="type-var">'v</span> <span>-></span> unit</code></dt><dd><p>Print the graph, starting from given vertex, on the formatter.</p><dl><dt>parameter attrs_v</dt><dd><p>attributes for vertices.</p></dd></dl><dl><dt>parameter attrs_e</dt><dd><p>attributes for edges.</p></dd></dl><dl><dt>parameter name</dt><dd><p>name of the graph.</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-pp_all"><a href="#val-pp_all" class="anchor"></a><code><span class="keyword">val</span> pp_all : <span>tbl:<span><span>(<span class="type-var">'v</span>, <a href="index.html#type-vertex_state">vertex_state</a>)</span> <a href="../index.html#type-table">table</a></span></span> <span>-></span> <span>eq:<span>(<span class="type-var">'v</span> <span>-></span> <span class="type-var">'v</span> <span>-></span> bool)</span></span> <span>-></span> <span>?⁠attrs_v:<span>(<span class="type-var">'v</span> <span>-></span> <span><a href="index.html#type-attribute">attribute</a> list</span>)</span></span> <span>-></span> <span>?⁠attrs_e:<span>(<span class="type-var">'e</span> <span>-></span> <span><a href="index.html#type-attribute">attribute</a> list</span>)</span></span> <span>-></span> <span>?⁠name:string</span> <span>-></span> <span>graph:<span><span>(<span class="type-var">'v</span>, <span class="type-var">'e</span>)</span> <a href="../index.html#type-t">t</a></span></span> <span>-></span> Stdlib.Format.formatter <span>-></span> <span><span class="type-var">'v</span> <a href="../index.html#type-iter">iter</a></span> <span>-></span> unit</code></dt><dd><p>Same as <a href="index.html#val-pp"><code>pp</code></a> but starting from several vertices, not just one.</p><dl><dt>since</dt><dd>2.8</dd></dl></dd></dl><dl><dt class="spec value" id="val-with_out"><a href="#val-with_out" class="anchor"></a><code><span class="keyword">val</span> with_out : string <span>-></span> <span>(Stdlib.Format.formatter <span>-></span> <span class="type-var">'a</span>)</span> <span>-></span> <span class="type-var">'a</span></code></dt><dd><p>Shortcut to open a file and write to it.</p></dd></dl></div></body></html> |