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
3 answers

Issue with graphviz never completing

Can someone help me figure out why the following graph never generates in dot? I think the problem has something to do with the headport and tailport. It works if I take those out, but ideally I want those to stay for stylistic reasons. digraph G { …
Karrde
  • 1
0
votes
1 answer

Is there a better way to point to a sub graph?

I'd like to point to a sub graph where the line stops on the edge. From what I understand I can select any of the nodes in the sub graph. Is there a way to create an invisible node that you can point to? digraph G { compound=true; subgraph…
Marinus
  • 2,210
  • 2
  • 15
  • 15
0
votes
1 answer

HTML labels with ocamlgraph

Is it possible to make a graph like this one with ocamlgraph? HTML labels have to be delimited with <> instead of "" and I don't see any mention of this functionality in the documentation.
pbp
  • 1,461
  • 17
  • 28
0
votes
1 answer

draw only edges with labels pair

I want to draw the graph (ladder track representation) as follows: i.e. without node shapes and with two edge labels: at head and at tail of edge. What should I do to achieve this? (14, 15 — nodes with two edges each)
Tomilov Anatoliy
  • 15,657
  • 10
  • 64
  • 169
0
votes
1 answer

Loading a DOT file using RGL

RGL supports writing DOT files from a graph, is it possible to create a graph from a DOT file? (Obviously I can parse the DOT file myself and create a graph, but I'm wondering if this functionality exists already).
oz10
  • 153,307
  • 27
  • 93
  • 128
0
votes
1 answer

How to set rank from left to right dotfile

Say I have four nodes a, b, c & d. And I have edges a -> d b -> c Now if i generate graph, I get the vertices in the order a, d, b, c if I rank them same. But I want them in the order a, b, c, d. How should I set the rank ? Thanks in advance.
neel
  • 8,399
  • 7
  • 36
  • 50
0
votes
2 answers

generate function call for c

I use -finstrument-functions to generated enter and exit information of my each function call and use dot to draw it just like above. However, I found one problem, in my main function, I create two threads, one called driver_TASL, another is…
How Chen
  • 1,340
  • 2
  • 17
  • 37
0
votes
1 answer

how to write the figure name using dot

What I want to ask is that we can draw figures using dot but is it possible to give a name to that figure and that name comes below that figure?
neel
  • 8,399
  • 7
  • 36
  • 50
0
votes
1 answer

Graphviz dot generates a very large black image only for one document

So when I use graphviz dot to create a simple graph is works entirely as expected, this code: digraph simple { "1313213"-> "123123" "123123" -> "adsagj" } Creates this image: As expected but for some reason when I use the following…
hkothari
  • 254
  • 3
  • 14
0
votes
1 answer

How do I set the size of a node in a .dot file?

I want to set the size of my nodes relative to their impact in the graph, and I need to find some way to have their size appear in Gephi. At the moment, I'm using the following code: def write_graph_dot(graph, filename, label=None): g =…
alexgolec
  • 26,898
  • 33
  • 107
  • 159
0
votes
1 answer

Graphviz order of siblings

Each time I convert graph object to dot language using approach shown below - the order of siblings is lost. Is there any way to avoid this? StringWriter theGraph = new StringWriter(); graph.printGraph(theGraph); theGraph.toString(); Update: My…
M T
  • 968
  • 1
  • 8
  • 24
0
votes
2 answers

DOT Overwide node error

I have a large DOT file that I am trying to graph in GraphViz using DOT. I used the following command: dot -Tpng -o d:\GUIForm\test2.png d:\GUIForm\graph_2291547484206256890.dot.tmp I got the following error: Error: Edge length 65873.000000 larger…
tr4nc3
  • 631
  • 5
  • 12
0
votes
1 answer

creating .graphml tree diagram from nested list

I am desperately looking for a solution to create a nice binary tree diagram. It is crucial that incomplete nodes have distinguishable edges (if any). I failed to produce the desired result with .dot, because I know of no way to order nodes. I don't…
Markus Rother
  • 414
  • 3
  • 10
0
votes
1 answer

Add a new edge while keeping existing graph fixed

Consider the manually drawn red arrow in this graph: I want to tell graphviz to draw an arrow like that, although the particular path is not important. The important thing is that the existing graph not change at all. Essentially, I want to…
Jonah
  • 15,806
  • 22
  • 87
  • 161
0
votes
1 answer

Calling sccmap using Java

I am trying to call the sccmap command from GraphViz using Java. String command = "/usr/bin/sccmap -S /home/paperclip/Desktop/graph.dot > /home/paperclip/Desktop/scc.dot"; try { Runtime rt = Runtime.getRuntime(); …
paperclip
  • 650
  • 2
  • 8
  • 23