{"id":8357,"date":"2023-09-23T09:39:55","date_gmt":"2023-09-23T07:39:55","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=8357"},"modified":"2023-09-23T09:39:58","modified_gmt":"2023-09-23T07:39:58","slug":"professionelle-diagramme-mit-graphviz-unter-linux","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/23\/professionelle-diagramme-mit-graphviz-unter-linux\/","title":{"rendered":"Professionelle Diagramme mit Graphviz unter Linux"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Eilig erstellte Diagramme, egal mit welcher Software, haben einen Nachteil &#8211; sie sehen zumeist nicht professionell aus. Die L\u00f6sung w\u00e4re eine Software, der Sie nur zeigen, m\u00fcssen was Sie wollen und den Rest erledigt dann eben diese. Eine solche Software ist nun Graphviz, Sie geben der Software vor welche Daten Sie wie visualisiert haben wollen und den Rest \u00fcbernimmt die Software f\u00fcr Sie. Die Anwendung ist zwar eine Software f\u00fcr das Terminal, doch wissen m\u00fcssen Sie tats\u00e4chlich nur ganz wenig, es ist sehr einfach die wenigen Befehle zu erlernen. In diesem Dokument erfahren Sie nun die ersten Grund-Z\u00fcge um mit dieser Software arbeiten zu k\u00f6nnen. Ein schon etwas gr\u00f6\u00dferes Diagramm in einer M\u00f6glichkeit sehen Sie etwa hier\u00a0<a rel=\"noreferrer noopener lightbox-0\" href=\"http:\/\/www.graphviz.org\/Gallery\/undirected\/root.png\" target=\"_blank\">Graphviz<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Graphviz installieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Unter auf Debian basierenden Systemen (<em>wie etwa auch Ubuntu, Kubuntu, Linux Mint, und so weiter<\/em>) installieren Sie Graphviz ganz einfach \u00fcber die Paket-Verwaltung durch das Paket &#8222;<strong>graphviz<\/strong>&#8222;.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Graphviz nutzen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Mit Graphviz zu arbeiten bedeutet zwei Schritte zu erledigen, als erstes erstellt man eine Text-Datei, die man mit den gew\u00fcnschten Informationen f\u00fcllt, den entsprechenden Daten und wie diese zu visualisieren sind, der Rest ist dann Graphviz auf dem Terminal die erstellte Steuer-Datei zu zeigen, alles andere erledigt die Software selbst. Welchen Text-Editor man zum Erstellen der Steuer-Datei nutzt ist vollkommen egal, die Datei-Endung dieser Datei sollte sich dann &#8222;<strong>.gv<\/strong>&#8220; nennen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Einfaches Beispiel<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Als Erstes m\u00f6chte ich ein ganz einfaches Beispiel zeigen, etwa unterschiedliche Betriebssysteme. Ich f\u00fclle beispielsweise die Text-Datei &#8222;<strong>beispiel.gv<\/strong>&#8220; mit folgenden Daten (<em>Text mit Leerzeichen setzt man unter Anf\u00fchrungszeichen<\/em>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>digraph G {\nBetriebssysteme -&gt; Linux;\nBetriebssysteme -&gt; UNIX;\nBetriebssysteme -&gt; \"MAC OS X\";\nBetriebssysteme -&gt; \"Microsoft Windows\";\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Man speichert die Datei und \u00f6ffnet ein Terminal im Verzeichnis, in dem die Datei liegt und startet nun den Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dot -Tpng beispiel.gv -o Betriebssysteme.png<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"155\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme.png\" alt=\"\" class=\"wp-image-8358\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme.png 702w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme-300x66.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme-150x33.png 150w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Der Befehl zum Erstellen der Grafik<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Wir haben im Beispiel oben nun gesehen, dass es gar nicht so schwierig ist, ein einfaches Diagramm zu erstellen, das alles andere als unordentlich aussieht. Der Befehl lautete:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dot -Tpng beispiel.gv -o Betriebssysteme.png<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Wir wollen uns nun die Syntax ein wenig genauer ansehen, um zu verstehen, um was es eigentlich geht:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dot -Tformat eingabe-datei -o ausgabe-grafik<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">&#8222;<strong><code>dot<\/code><\/strong>&#8220; ist nun ganz einfach der richtige Befehl um Graphviz zu starten, &#8222;<strong><code>-Tformat<\/code><\/strong>&#8220; gibt das Grafik-Format an das erstellt werden soll (<em>weitere Beispiele w\u00e4ren etwa &#8222;-Tjpg&#8220;, &#8222;-Tgif &#8222;, &#8222;-Tpdf &#8222;, &#8222;-Tps&#8220; oder auch &#8222;-Tsvg&#8220;<\/em>). Die &#8222;<strong><code>eingabe-datei<\/code><\/strong>&#8220; ist nichts anderes als unsere erstellte Text-Datei mit der Endung &#8222;<strong><code>.gv<\/code><\/strong>&#8222;, mit &#8222;<strong><code>-o<\/code><\/strong>&#8220; zeigt man der Software das nun der Datei-Name folgt den Graphviz erstellen soll, also &#8222;<strong><code>ausgabe-grafik<\/code><\/strong>&#8222;.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Die Syntax der Steuer-Datei<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Weiters haben wir oben den ersten f\u00fcr eine einfache Steuer-Datei gesehen, hier noch einmal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>digraph G {\nBetriebssysteme -&gt; Linux;\nBetriebssysteme -&gt; UNIX;\nBetriebssysteme -&gt; \"MAC OS X\";\nBetriebssysteme -&gt; \"Microsoft Windows\";\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Mittels &#8222;<strong><code>digraph G {<\/code><\/strong>&#8220; erstellen wir ganz einfach ein gerichtetes Diagramm, ein ungerichtetes w\u00fcrden wir mittels &#8222;<strong><code>graph G {<\/code><\/strong>&#8220; erstellen (<em>den Unterschied sehen wir im n\u00e4chsten Beispiel<\/em>). Alles was sich nun in der geschweiften Klammer findet &#8222;<strong>{}<\/strong>&#8220; zeichnet nun sp\u00e4ter die Grafik aus. &#8222;<strong><code>Betriebssysteme<\/code><\/strong>&#8220; stellt in diesem Fall die Basis unseres Diagramms dar, &#8222;<strong>-><\/strong>&#8220; gibt die Richtung des Pfeiles an, hinter dem Pfeil liegt nun der weitere Teil des Diagramms, besteht der Ausdruck aus durch Leerzeichen getrennten Worten oder Buchstaben, setzt man den ganzen Ausdruck unter Anf\u00fchrungszeichen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Weiteres einfaches Beispiel<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Vorher haben wir ein gerichtetes Diagramm erstellt, also ganz einfach mit Pfeilen, wollen wir ein ungerichtetes Diagramm, also ohne Pfeile ersetzen wir &#8222;<strong><code>digraph G<\/code><\/strong>&#8220; ganz einfach durch &#8222;<strong><code>graph G<\/code><\/strong>&#8220; und lassen das Gr\u00f6\u00dfer-Zeichen &#8222;<strong><code>><\/code><\/strong>&#8220; weg. Also:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>graph G {\nBetriebssysteme -- Linux;\nBetriebssysteme -- UNIX;\nBetriebssysteme -- \"MAC OS X\";\nBetriebssysteme -- \"Microsoft Windows\";\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Durch denselben Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dot -Tpng beispiel.gv -o Betriebssysteme.png<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">erhalten wir folgende Grafik:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"155\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme1-1.png\" alt=\"\" class=\"wp-image-8360\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme1-1.png 702w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme1-1-300x66.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme1-1-150x33.png 150w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Andere Arten des Diagrammes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Bisher haben wir Diagramme mit hierarchischer Struktur erstellt, dazu dient uns der Befehl &#8222;<strong><code>dot<\/code><\/strong>&#8220; &#8211; also:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dot -Tpng beispiel.gv -o Betriebssysteme.png<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Es gibt nat\u00fcrlich weitere Varianten, ersetzen wir nun einmal &#8222;<strong><code>dot<\/code><\/strong>&#8220; durch &#8222;<strong><code>twopi<\/code><\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>twopi -Tpng beispiel -o Betriebssysteme.png<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">w\u00fcrden wir folgende Grafik erhalten:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"359\" height=\"194\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme2.png\" alt=\"\" class=\"wp-image-8361\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme2.png 359w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme2-300x162.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme2-150x81.png 150w\" sizes=\"auto, (max-width: 359px) 100vw, 359px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ersetzen wir &#8222;<strong><code>dot<\/code><\/strong>&#8220; durch &#8222;<strong><code>circo<\/code><\/strong>&#8220; erhalten wir folgende:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"824\" height=\"749\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme3.png\" alt=\"\" class=\"wp-image-8362\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme3.png 824w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme3-300x273.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme3-150x136.png 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme3-768x698.png 768w\" sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Mit Farbe<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Schwarz \/ Wei\u00df ist nat\u00fcrlich nicht immer erw\u00fcnscht, also wollen wir zu Beginn einmal alle Graphen einf\u00e4rben, also beispielsweise unsere Basis in Rot:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>digraph G {\nBetriebssysteme &#91;style=filled, color=\"red\"]\nBetriebssysteme -&gt; Linux;\nBetriebssysteme -&gt; UNIX; Betriebssysteme -&gt; \"MAC OS X\";\nBetriebssysteme -&gt; \"Microsoft Windows\";\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"155\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme4.png\" alt=\"\" class=\"wp-image-8363\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme4.png 702w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme4-300x66.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme4-150x33.png 150w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Wollen wir noch etwas mehr:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CODE:&nbsp;<a href=\"https:\/\/www.linux-bibel-oesterreich.at\/viewtopic.php?t=169#\">ALLES AUSW\u00c4HLEN<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>digraph G {\nBetriebssysteme &#91;style=filled, color=\"red\"]\nLinux &#91;style=filled, color=\"blue\"]\nUNIX &#91;style=filled, color=\"magenta\"]\n\"MAC OS X\" &#91;style=filled, color=\"green\"]\n\"Microsoft Windows\" &#91;style=filled, color=\"yellow\"] Betriebssysteme -&gt; Linux;\nBetriebssysteme -&gt; UNIX;\nBetriebssysteme -&gt; \"MAC OS X\";\nBetriebssysteme -&gt; \"Microsoft Windows\";\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"155\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme5.png\" alt=\"\" class=\"wp-image-8364\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme5.png 702w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme5-300x66.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme5-150x33.png 150w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Form der Graphen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Nicht jeder bevorzugt runde Graphen, wollen wir ein wenig mehr Ecken ins Spiel bringen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>digraph G {\nnode &#91;shape=box]\nBetriebssysteme &#91;style=filled, color=\"red\"]\nLinux &#91;style=filled, color=\"blue\"]\nUNIX &#91;style=filled, color=\"magenta\"]\n\"MAC OS X\" &#91;style=filled, color=\"green\"]\n\"Microsoft Windows\" &#91;style=filled, color=\"yellow\"]\nBetriebssysteme -&gt; Linux;\nBetriebssysteme -&gt; UNIX;\nBetriebssysteme -&gt; \"MAC OS X\";\nBetriebssysteme -&gt; \"Microsoft Windows\";\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Wir erhalten nun die eckigen Graphen:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"155\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme6.png\" alt=\"\" class=\"wp-image-8365\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme6.png 560w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme6-300x83.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme6-150x42.png 150w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Um an eckige Graphen zu kommen, dient also die zus\u00e4tzliche Zeile:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>node &#91;shape=box]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Das ganze kann man nat\u00fcrlich, wenn gew\u00fcnscht auch variieren:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CODE:&nbsp;<a href=\"https:\/\/www.linux-bibel-oesterreich.at\/viewtopic.php?t=169#\">ALLES AUSW\u00c4HLEN<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>digraph G {\nBetriebssysteme &#91;style=filled, color=\"red\"]\nLinux &#91;style=filled, color=\"blue\", shape=box]\nUNIX &#91;style=filled, color=\"magenta\", shape=box]\n\"MAC OS X\" &#91;style=filled, color=\"green\", shape=box]\n\"Microsoft Windows\" &#91;style=filled, color=\"yellow\" shape=box]\nBetriebssysteme -&gt; Linux;\nBetriebssysteme -&gt; UNIX;\nBetriebssysteme -&gt; \"MAC OS X\";\nBetriebssysteme -&gt; \"Microsoft Windows\";\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Womit wir folgende Grafik erhalten w\u00fcrden:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"155\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme7.png\" alt=\"\" class=\"wp-image-8366\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme7.png 560w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme7-300x83.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme7-150x42.png 150w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Aussehen der Pfeile<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Nun wollen wir die Pfeile ein wenig optisch mehr hervorheben, dies f\u00fcgt man einfach der Beschreibung an:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>digraph G {\nBetriebssysteme &#91;style=filled, color=\"red\"]\nLinux &#91;style=filled, color=\"blue\", shape=box]\nUNIX &#91;style=filled, color=\"magenta\", shape=box]\n\"MAC OS X\" &#91;style=filled, color=\"green\", shape=box]\n\"Microsoft Windows\" &#91;style=filled, color=\"yellow\" shape=box]\nBetriebssysteme -&gt; Linux &#91;color=\"red\"];\nBetriebssysteme -&gt; UNIX &#91;color=\"red\"];\nBetriebssysteme -&gt; \"MAC OS X &#91;color=\"red\"]\";\nBetriebssysteme -&gt; \"Microsoft Windows\";\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Wir kommen also an folgende Grafik:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"694\" height=\"155\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme8.png\" alt=\"\" class=\"wp-image-8367\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme8.png 694w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme8-300x67.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme8-150x34.png 150w\" sizes=\"auto, (max-width: 694px) 100vw, 694px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Pfeile mit Beschreibung<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Den einzelnen Pfeilen wollen wir nat\u00fcrlich eine Beschreibung hinzuf\u00fcgen, auch dies f\u00fcgt man der Beschreibung einfach an:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>digraph G {\nBetriebssysteme &#91;style=filled, color=\"red\"]\nLinux &#91;style=filled, color=\"blue\", shape=box]\nUNIX &#91;style=filled, color=\"magenta\", shape=box]\n\"MAC OS X\" &#91;style=filled, color=\"green\", shape=box]\n\"Microsoft Windows\" &#91;style=filled, color=\"yellow\" shape=box]\nBetriebssysteme -&gt; Linux &#91;color=\"red\", style=\"bold\", label=\"Frei\/POSIX\" ];\nBetriebssysteme -&gt; UNIX &#91;color=\"red\", style=\"bold\", label=\"Frei\/POSIX\" ];\nBetriebssysteme -&gt; \"MAC OS X\" &#91;color=\"red\", style=\"bold\", label=\"Propriet\u00e4r\/POSIX\" ];\nBetriebssysteme -&gt; \"Microsoft Windows\" &#91;label=\"Propriet\u00e4r\" ];\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Und schon erhalten wir folgende ver\u00e4nderte Grafik:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"623\" height=\"175\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme9.png\" alt=\"\" class=\"wp-image-8368\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme9.png 623w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme9-300x84.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme9-150x42.png 150w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Elemente gruppieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Um Elemente zu gruppieren, geht man ein wenig weiter, etwa so:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>digraph G {\nsubgraph cluster_0 {\nstyle=filled; color=grey;\nlabel=\"basiert auf UNIX\";\nLinux UNIX \"MAC OS X\"\n}\nBetriebssysteme &#91;style=filled, color=\"red\"]\nLinux &#91;style=filled, color=\"blue\", shape=box]\nUNIX &#91;style=filled, color=\"magenta\", shape=box]\n\"MAC OS X\" &#91;style=filled, color=\"green\", shape=box]\n\"Microsoft Windows\" &#91;style=filled, color=\"yellow\" shape=box]\nBetriebssysteme -&gt; Linux &#91;color=\"red\", style=\"bold\", label=\"Frei\/POSIX\" ];\nBetriebssysteme -&gt; UNIX &#91;color=\"red\", style=\"bold\", label=\"Frei\/POSIX\" ];\nBetriebssysteme -&gt; \"MAC OS X\" &#91;color=\"red\", style=\"bold\", label=\"Propriet\u00e4r\/POSIX\" ];\nBetriebssysteme -&gt; \"Microsoft Windows\" &#91;label=\"Propriet\u00e4r\" ];\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Und schon w\u00e4ren wir bei folgender Grafik angelangt:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"605\" height=\"224\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme10.png\" alt=\"\" class=\"wp-image-8369\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme10.png 605w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme10-300x111.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Betriebssysteme10-150x56.png 150w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Die volle Dokumentation zu dieser Software finden Sie unter\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/graphviz.org\/documentation\/\" target=\"_blank\">Graphviz<\/a>.<\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"8357\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"8357\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Eilig erstellte Diagramme, egal mit welcher Software, haben einen Nachteil &#8211; sie sehen zumeist nicht professionell aus. Die L\u00f6sung w\u00e4re eine Software, der Sie nur zeigen, m\u00fcssen was Sie wollen und den Rest erledigt dann eben diese. Eine solche Software ist nun Graphviz, Sie geben der Software vor welche Daten Sie wie visualisiert haben wollen [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8369,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[59],"class_list":["post-8357","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-buero","tag-buero"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/8357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=8357"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/8357\/revisions"}],"predecessor-version":[{"id":8370,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/8357\/revisions\/8370"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/8369"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=8357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=8357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=8357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}