<p>We provide several functions to translate graphs, Hasse diagrams or trees related to numerical and affine semigroups to the dot language. This can either be used with graphviz or any javascript library that interprets dot language. We give the alternative to use <code class="code">DotSplash</code> that uses viz.js.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ DotBinaryRelation</code>( <var class="Arg">br</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p><code class="code">br</code> is a binary relation. Returns a GraphViz dot that represents the binary relation <code class="code">br</code>. The set of vertices of the resulting graph is the source of <code class="code">br</code>. Edges join those elements which are related with respect to <codeclass="code">br</code>.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ HasseDiagramOfNumericalSemigroup</code>( <var class="Arg">S</var>, <var class="Arg">A</var> )</td><tdclass="tdright">( function )</td></tr></table></div>
<p><code class="code">S</code> is a numerical semigroup and <code class="code">A</code> is a set of integers. Returns a binary relation which is the Hasse diagram of <code class="code">A</code> with respect to the ordering <span class="SimpleMath">\(a\preceq b\)</span> if <span class="SimpleMath">\(b - a\)</span> in <code class="code">S</code>.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ HasseDiagramOfBettiElementsOfNumericalSemigroup</code>( <var class="Arg">S</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p><code class="code">S</code> is a numerical semigroup. Applies <code class="func">HasseDiagramOfBettiElementsOfNumericalSemigroup</code> with arguments <code class="code">S</code> and its Betti elements.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ HasseDiagramOfAperyListOfNumericalSemigroup</code>( <var class="Arg">S</var>[, <var class="Arg">n</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p><code class="code">S</code> is a numerical semigroup, <code class="code">n</code> is an integer (optional, if not provided, the multiplicity of the semigroup is taken as its value). Applies <codeclass="func">HasseDiagramOfBettiElementsOfNumericalSemigroup</code> (<a href="chap14_mj.html#X832901FF85EB8F1C"><span class="RefLink">14.1-3</span></a>) with arguments <code class="code">S</code> and the Apéry set of <code class="code">S</code> with respect to <code class="code">n</code>.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ DotTreeOfGluingsOfNumericalSemigroup</code>( <var class="Arg">S</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p><code class="code">S</code> is a numerical semigroup. It outputs a tree (in dot) representing the many ways <code class="code">S</code> can be decomposed as a gluing of numerical semigroups (and goes recursively in the factors).</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ DotOverSemigroupsNumericalSemigroup</code>( <var class="Arg">S</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p><code class="code">S</code> is a numerical semigroup. It outputs the Hasse diagram (in dot) of oversemigroups of <code class="code">S</code>.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ DotRosalesGraph</code>( <var class="Arg">n</var>, <var class="Arg">S</var> )</td><td class="tdright">( operation )</td></tr></table></div>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ DotRosalesGraph</code>( <var class="Arg">n</var>, <var class="Arg">S</var> )</td><td class="tdright">( operation )</td></tr></table></div>
<p><code class="code">S</code> is either numerical or an affine semigroup and <code class="code">n</code> is an element in <code class="code">S</code>. It outputs the graph associated to <code class="code">n</code> in <code class="code">S</code> (see <code class="func">GraphAssociatedToElementInNumericalSemigroup</code> (<a href="chap4_mj.html#X81CC5A6C870377E1"><span class="RefLink">4.1-2</span></a>)).</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ DotFactorizationGraph</code>( <var class="Arg">f</var> )</td><td class="tdright">( operation )</td></tr></table></div>
<p><code class="code">f</code> is a set of factorizations. Returns the graph (in dot) of factorizations associated to <code class="code">f</code>: a complete graph whose vertices are the elements of <code class="code">f</code>. Edges are labelled with distances between the nodes they join. Kruskal algorithm is used to draw in red a spanning tree with minimal distances. Thus the catenary degree is reached in the edges of the tree.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ DotEliahouGraph</code>( <var class="Arg">f</var> )</td><td class="tdright">( operation )</td></tr></table></div>
<p><code class="code">f</code> is a set of factorizations. Returns the Eliahou graph (in dot) of factorizations associated to <code class="code">f</code>: a graph whose vertices are the elements of <code class="code">f</code>, and there is an edge between two vertices if they have common support. Edges are labelled with distances between nodes they join.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ SetDotNSEngine</code>( <var class="Arg">engine</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>This function sets the value of <code class="code">DotNSEngine</code> to <code class="code">engine</code>, which must be any of the following "circo","dot","fdp","neato","osage","twopi". This tells viz.js which graphviz engine to use.</p>
<p>Here is an example with the default dot engine <br><center><img src="img/fact-dot.jpg"></center><br> And one with circo engine <br><center><img src="img/fact-circo.jpg"></center><br></p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ DotSplash</code>( <var class="Arg">dots...</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Launches a browser and visualizes the dots diagrams provided as arguments. It outputs the html page displayed as a string, and prints the location of the temporary file that contains it.</p>
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.