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

Doxygen Dot Generates Boxes Instead of Names

I'm trying to visualize a code base without explicit doxygen comments, I run into what seems like an error when viewing the dot graphs in the html generated by doxygen Generated Boxes I'm running doxygen under a cygwin bash with GraphViz installed.…
0
votes
2 answers

Mulval: installation setup

I am trying to install mulval on my machine following this doc: http://people.cis.ksu.edu/~xou/argus/software/mulval/readme.html However, I am not exactly sure how to make changes to the path of XSB, dot and Mulval. I get the following error when I…
0
votes
1 answer

Horizontally placing clusters with node outside

I'm fiddling around in Graphviz trying to make a graph of an architecture, but no matter what I try, dot always seems to want to connect some of the nodes with the longest possible path. Here's a sketch of how I want it to more or less look: Here's…
Electric Coffee
  • 11,733
  • 9
  • 70
  • 131
0
votes
1 answer

ParseException from PyParsing via dot2tex

Passing the following dot file as input to dot2tex results in a parse exception. If I remove the ",2", the error disappears. digraph G { node [shape="circle"]; 1,2 [style="filled"]; 1 -> { 2; 3; 4 } 2 -> { 5; 6 } 4 -> { 7; 8 } …
user2023370
  • 10,488
  • 6
  • 50
  • 83
0
votes
0 answers

Graphiz Dot Vertical Nodes

So I have this, How do I get rid of this random jog? It works fine from nodes 1 until this point, and then onwards until node 125 (at which point my graph ends currently) These nodes are on the side to keep the ones in the middle aligned with each…
Eric Wolf
  • 402
  • 1
  • 6
  • 15
0
votes
1 answer

Add a dot in Calculator Swift

I've tried implementing the dot or "point" in calculator I'm programming the windows 7 calculator as a reference to my calcu. I've tried this in my code: @IBAction func btnDot(sender: AnyObject) { if(lblResult.text!.characters.count == 0) { …
laurence keith albano
  • 1,409
  • 4
  • 27
  • 59
0
votes
1 answer

How to make some lines of a dot graphic parallel?

when I use dot in order to plot the graph which is described by the code below, not all middle lines are parallel (namely the lines A -> I and E -> J): digraph g {rankdir=LR node [shape = record, height=0.1]; node0[label = "A ", style="filled",…
0
votes
0 answers

Positioning edges in a diagraph

I'm attempting to make a 2-4 tree in DOT. I've got the tree I need built, but I want to position the ends of the edges so that it more accurately reflects a 2-4 tree. I've got the following graph digraph g { node [shape = record,height=.1,label="…
Matt Langlois
  • 305
  • 3
  • 17
0
votes
2 answers

Setting arbitrary nodes positions in a Graphviz state machine diagram

Grapviz normally formats diagrams according to fixed styles. I would like to set nodes positions of this graph: generated with this code: digraph finite_state_machine { # rankdir=LR; size="8,5" node [shape = doublecircle]; S E; node…
Wakan Tanka
  • 7,542
  • 16
  • 69
  • 122
0
votes
1 answer

edge connections overlap and don't space out

I'm trying too see whether I can use the Dot programming language to apply it to an old project of mine. The task is simple: create a high quality graph with ease. Unfortunately, while it has been fairly easy to implement the details of my graph, I…
0
votes
2 answers

How to enforce sub graphs to be on the same horizontal line in Graphviz

I'm using graphviz (dot) to generate time expanded graph to use in my master thesis. However, my drawing results the following graph: As you can see, the third line is a little bit shifted to the right.I want all the lines in the same horizontal…
Makif
  • 113
  • 2
  • 9
0
votes
0 answers

Error while loading two dot files in python

How can I load two separate dot.files in python. I was trying like this but I got an error. #import pygraphviz as pgv import networkx as nx #import matplotlib.pyplot as plt Gtmp1 = nx.read_dot("case1.dot") Gtmp2 =…
0
votes
0 answers

Dot file in Python, attributes

I got a couple of graphs in .dot file as well as their png image. How can I use them in python keeping not only their labels and edges but also the attributes such as color of an arrow and shape of the node? Till now i was using following…
0
votes
0 answers

How to avoid arrow heads reaching into boxes?

I create SVG output with dot. When I set penwidth = 2 for nodes and edges, the arrowheads point slightly inside the boxes. Is there a way to avoid this? Maybe by drawing the nodes after the edges? Or by reducing the length of the edges/arrows to…
Jens
  • 69,818
  • 15
  • 125
  • 179
0
votes
1 answer

Node placement in family tree visualization with Dot/Graphviz

I'm trying to generate family tree visualizations from a database using Dot/Graphviz. First results look promising, but there is one layout issue that I haven't been able to fix yet. When I use the code listed below, it will produce I'm totally…
JotWe
  • 5
  • 5