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

networkx mixing edges when i use subgraph

I have a simple dot file with the list of nodes and edges. Each node is the network device. Devices connected to each other through interfaces, so i used head and tail labels as interface name: "172.16.3.205" -- "172.16.3.178" [taillabel="27",…
Mr.Pisos
  • 26
  • 2
0
votes
1 answer

Graphviz - dot fails with fontconfig error

A problem I had with Graphviz yesterday - I couldn't find anything documenting this exact error on Stack Overflow or elsewhere, so I decided to write it up. On Linux, every call to dot started failing with the error message: No fonts found; this…
Jacob Ritchie
  • 1,261
  • 11
  • 22
0
votes
1 answer

Graphviz, GEF4 and build paths in Java

I wrote this java code to display a simple graph using Graphviz and GEF4 framework. What's important, I am using Window Builder in Eclipse too. I created SWT/JFace Java project, then converted it into Plug-in project. import…
sourire09
  • 21
  • 7
0
votes
1 answer

Graphviz: Align tree roots in a forest

I defined a forest (a set of trees) in DOT. I am using dot for layouting. Now the problem: The trees have different depths. I would like to align the root nodes on the same level, however on default the nodes are aligned by the leaves.
knub
  • 3,892
  • 8
  • 38
  • 63
0
votes
1 answer

Graphviz Dot file failing to compile in Windows Emacs

I took the following steps to use Graphviz Dot mode in emacs: as per instructions at http://ppareit.github.io/graphviz-dot-mode/, added (load-file "PATH_TO_FILE/graphviz-dot-mode.el") to my .emacs file (C:/emacs/.emacs for me), and copied the text…
David J.
  • 1,753
  • 13
  • 47
  • 96
0
votes
1 answer

Frama-C Graph of Full File

I have been trying to use the pdg-dot plugin to help create a good graph of my software.The problem is different files don't have main so Frama-C complains. When I use the -main tag and specify a function to start it, it only creates a .dot file for…
Adam
  • 33
  • 7
0
votes
1 answer

Graphviz / dot label overlap with edge

I have a label that barely touch the edge, but there were plenty of space round it, is there anyway to make it not touching the edge in Graphiz? This is minor issue, but I have to redraw in powerpoint if cannot resolve by coding as my collaborator…
ceoec
  • 203
  • 2
  • 10
0
votes
2 answers

Dot language with concentrate=true confusing the graph

I draw a simple graph as shown below and found different behavior of the color display. digraph G { concentrate=true edge [dir=none] a -> b [color=red] b -> c c -> b b -> a } Graph show edge between a and b…
Warin
  • 11
  • 1
  • 2
0
votes
1 answer

How do I use Ant private target names as node_ids in the Graphviz/dot file format?

I want to create a graph of Ant tasks and dependencies using the dot file format and Graphviz. Like many Ant scripts, these use "private targets". That is, target names starting with a dash (-). I am taking a list of tasks like
Anthony Mastrean
  • 21,850
  • 21
  • 110
  • 188
0
votes
1 answer

How do I find the rank of a node in rgraphviz?

I have a directed acyclic graph in rgraphviz, it's going to be rendered as a DOT graph. I want to control the appearance of nodes based on its rank. How do I find the rank of nodes?
md1630
  • 841
  • 1
  • 10
  • 28
0
votes
2 answers

Graphviz syntax shortcuts

Writing huge graphs in Graphviz is tedious. One day I will write my graphs in a custom format, which I will then transform into DOT format, but currently I want to find out the ways to write DOT files manually as succinctly as possible. I currently…
Mirzhan Irkegulov
  • 17,660
  • 12
  • 105
  • 166
0
votes
1 answer

how to reorder manually a dot graph with interfaz, no by coding

I have a graph in .dot format and I can view it in graphviz. I would like to reorder the graph manually without modifying the dot code. I aim to clarify the graph, not changing the hierarchy, but making it more beautiful. Is there any…
marilia15
  • 11
  • 2
0
votes
1 answer

Keeping Tree layout when using connections between branches in Dot/Graphviz

I am implementing a Frequent Pattern Tree at the moment. For visualization I am using dot/graphviz (especially wintersleep-graphviz 0.1, but this should not concern us now), which is working fine so far. When visualizing node links, which are…
Obererpel
  • 55
  • 14
0
votes
1 answer

Alignment issue with two clusters using Graphviz and Dot

I'm trying to get the following dot file to output two subgraphs. I want the bLoop node in cluster0 to align with the ISR struct in cluster 2. I'm using an invisible node to do this now, but with the unintended consequence of lot of gray space left…
RYS
  • 442
  • 6
  • 22
0
votes
1 answer

Can I connect all nodes in one subgraph to all nodes in another with a single DOT statement?

Consider this simple DOT file. graph Foo { subgraph foo { a; b; c; } subgraph bar { w; x; y; } {a,b,c} -- {w,x,y}; } The statement {a,b,c} -- {w,x,y} means "connect all nodes in foo to all nodes in…
spraff
  • 32,570
  • 22
  • 121
  • 229