Questions tagged [dot]

DOT is both a mathematical graph description language and a particular graph rendering engine (dot). As a graph description language, DOT uses a simple plain text mapping syntax to describe the relationships between nodes and edges (e.g. `nodeA -> nodeB`) , and a plain text markup syntax to add style, annotations, and constrain the rendered layout.

DOT is a plain text graph description language. It is a simple way of describing graphs that both humans and computer programs can use.

The following Example:

digraph g{

    // basic: A,B,C,D  (this is a comment)
    A -> B -> C -> D
    D -> C
    B -> D

    // node and edge markups
    nodeA [shape=diamond, color=red, style=dashed, label="Warehouse 259"]
    nodeA -> nodeB [color=blue, style=solid, label="MWF schedule, 2 ton capacity"]

}

will render to this graph:

enter image description here

DOT graphs are typically files that end with the .gv (preferred) or .dot extension.

Most uses of DOT are either by GraphViz programs or by software that uses GraphViz internally.

1075 questions
0
votes
1 answer

Forcing edges on one side of a graph in DOT

In the following graph in DOT graph { rankdir=LR; ranksep="1.0"; "v_1086" [label="A"]; "v_1023" [label="B"]; "v_1181" [label="C"]; "q_-888017763" [label="Q"]; "c_-961691100" [label="1"]; "c_-1161934348" [label="2"]; …
myahya
  • 3,079
  • 7
  • 38
  • 51
-1
votes
1 answer

Converting a graph from SVG back to DOT

Given a graph in an SVG-file generated using Graphviz, is there a way (converter) to get back the basic description of this graph in terms of the DOT language? (no styling, it would be sufficient to have nodes, edges, and maybe their labels) Maybe…
user35603
  • 765
  • 2
  • 8
  • 24
-1
votes
1 answer

How to order nodes inside a subgraph in dot

I can't get the nodes to appear in the same order I wrote them Here is the code I'm trying to use with dot: digraph G { fontname = "Hilda 10" rankdir=LR splines=line nodesep=.08; ranksep=1; edge…
douglasbr
  • 13
  • 2
-1
votes
1 answer

Graphviz DOT file distorted rendering (terraform graph)

I'm new to Graphviz and I'm getting a distorted image of my DOT file generated from terraform graph command which I'm trying to either lighten or increase the height of elements because they are really thin compared to their width. To give you an…
Vincent Caggiari
  • 307
  • 2
  • 10
-1
votes
1 answer

Graphviz cannot open image, Ubuntu

I am having problem including image in node in graphviz. I tried both including image in node via image="name.svg" and via in HTML-like label. I also tried using different image formats (svg, jpg, png), but when exporting I…
Filip Ž
  • 11
  • 3
-1
votes
1 answer

Graphviz (neato) label overlaps edge problem

I have simple network generated with graphviz(neato): digraph G{ edge [len = 1.5, fontcolor=blue]; 0 -> 1 [label="0/8"]; 0 -> 2 [label="0/7"]; 1 -> 3 [label="0/6"]; 2 -> 1 [label="0/2"]; 2 -> 4 [label="0/7"]; …
J. Doe
  • 1
-1
votes
1 answer

How to convert xml to dot using XSLT saxonica?

I have an xml code as shown below, The xml contains several elements, namely: id, parent menu, label, role id, role and items. in items there is 1 element, namely submenu, and in submenu there are 2 elements, namely url and label:
-1
votes
2 answers

the way of accessing the number element of object in javascript in '.' causes an error

First, I am a beginner of javascript. Please understand asking this simple question.. (looks simple) I was making a membership related webpage and encountered an error.. I was learned that to access the element of an object, I can use '.'(dot) so I…
Tom
  • 1
  • 1
-1
votes
1 answer

Label plot based on condition

I have a dot plot with data from dataframe df_roles$result and would like to assign labels only to certain dots specified by their specific name in df_roles$name. My expected output is to have e.g. China labelled. I have tried both these arguments…
MoonS
  • 117
  • 7
-1
votes
1 answer

A tool to visualize network connections

Currently I'm planning on using dot and it's family. I want to know if there is something more appropriate? I'll need to show several levels, card and network connection(input and output): ---------- |IOIOIOIO| --|------- …
shevski
  • 1,012
  • 1
  • 10
  • 32
-1
votes
1 answer

How to create a new edge using existing nodelabel/headlabel in graphviz/dotEditor without duplicating a new one

digraph G { "DUT0" [label="DUT0"]; "DUT1" [label="DUT1"]; "DUT0" -> "DUT1" [headlabel="1", taillabel="2"]; "DUT1" -> "DUT1" [taillabel="1", headlabel="3"]; } I am using the below script in graphviz dotEditor to create my graph. The…
Om Gupta
  • 1
  • 1
-1
votes
1 answer

Shift data from one column to another column in same table

I have a Database table named major. I want to shift items or data(selective) from one column(A) to column(B) in the same table Major Please help me out Give me a sql query
-1
votes
2 answers

Draw vector graphic

I created a simple graphic with LibreOffice: The lines are not symmetric. I am very lazy and a bit autistic. Moving the lines with the mouse does not feel correct for me. I is very unlikely that I will find the matching position for all six lines…
guettli
  • 25,042
  • 81
  • 346
  • 663
-1
votes
1 answer

Process nodes and edges of a dot format graph in Java

I have a graph of dot format as String. I want to get its nodes, edges and their data for processing. I am looking for a Java library which processes a given dot format graph. An example would be appreciated. digraph G { rankdir=TB V1 [a=1, b=2,…
David
  • 63
  • 1
  • 10
-1
votes
1 answer

How to access nodes edges of dot format graph (Generalised ) in haskell

I want to access the nodes, edges and properties of 'xDotGraph' (G.DotGraph) and set those again. Here is Haskell code that prints dot format graph using graphviz: $ cat example.dot digraph { a [type1="", type2=""]; b [type1="",…
David
  • 63
  • 1
  • 10
1 2 3
71
72