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

How to add graphviz library in linux?

I am trying to create a graph using dot. However, it seems to not recognize attributes like fixed size. Hence, I am trying to add the graphviz library, but I do not know how to use the .deb file and use private libraries in C. here is my code, where…
user3213348
  • 255
  • 1
  • 5
  • 14
0
votes
1 answer

Dot graph generation too long around 60 edges

I tried to get a MPD from an Oracle database using SchemaCrawler. This tool generated a dot file and then use dot to generate the graph. But after an hour, the processing still didnt finish so I tried to launch myself dot on my dot file with the…
Albaku
  • 82
  • 8
0
votes
1 answer

Center last node of a graph

digraph { 1 -> 2 -> 3; 2 -> { rank = sink; end}; } How can I force the "end" node to be centered horizontally (in the same column as the first node)?
Julian Lettner
  • 3,309
  • 7
  • 32
  • 49
0
votes
1 answer

what's wrong with graphviz in php-fpm mode?

I try to config a program use xhprof. When I use php-cli mode or php's built in webServer, the callgraph generate image works well. But When I use nginx+php-fpm, the dot exec at xhprof_generate_image_by_dot blocks forever. Then I install the pear…
user890973
  • 947
  • 2
  • 8
  • 12
0
votes
1 answer

rdfdot : How to set graphviz parameters?

I use the Perl program rdfdot to transform a RDF file into a svg file. This program works fine but there is no way apparently to specify graphviz parameters such as the graph type ( Which normally are entered on the command line ). For example, we…
remi.chateauneu
  • 109
  • 2
  • 9
0
votes
0 answers

doxygen reporting an enddot error in 1.8.2.1

I have a very odd error. I'm running squeeze that has a default version of doxygen of 1.7.1. The following dot code works fine @dot digraph mpeg { init [shape=box, label="video_init"]; loop [shape=box, label="Loop"]; …
Ian Smith
  • 261
  • 1
  • 3
  • 5
0
votes
0 answers

doxygen: output callgraph files naming

I'm using doxygen with the following configure settings: HAVE_DOT = YES CALL_GRAPH = YES CALLER_GRAPH = YES There are not any additional doxygen settings in the source files. As an output I get .dot files which…
Alexandra B.
  • 263
  • 2
  • 10
0
votes
1 answer

gephi 0.8.2 failed to recognise the number of nodes and edges

I used java to generate some dot files, but Gephi 0.82 can only open some of them correctly. For some files, it showed 0 for the number of edges and nodes and no other error information. In fact, Gvedit can open them correctly. The following is a…
frankli22586
  • 710
  • 6
  • 19
0
votes
1 answer

Graphviz. How to automatically place the nodes in the right places

This code place nodes in correct places. digraph g { edge [dir=none]; node [shape=box,fillcolor="palegreen",style="filled"]; a -> b; a -> c b -> c b -> d b -> e d -> e c -> f e -> f a…
0
votes
1 answer

Graphiz: Parallel egdes in digraph

I am trying to build a dependecy scheme of a program as a digraph in dot. Therefore I used the following code: digraph LINK { rankdir=LR; ranksep=0.65; nodesep=0.40; splines=false; overlap=false; concentrate=false; …
M.K. aka Grisu
  • 2,338
  • 5
  • 17
  • 32
0
votes
1 answer

Object's attributes in graphviz

I'm trying to show the attributes of the statuses under the nodes label. It's currently like this: ________________________ ________________________ | | pause() | | | …
Th3B0Y
  • 884
  • 1
  • 12
  • 30
0
votes
1 answer

Visualize tree from *.dot file

I need to visualize a tree which I have gotten from an ANTLR parser and written to a .dot file by catching console output that the ANLR dot generator produces. MyDOTTreeGenerator generator = new MyDOTTreeGenerator(); PrintStream old =…
maryokhin
  • 1,058
  • 13
  • 20
0
votes
1 answer

graphviz - how to create a 'roundtrip' flow

I'm trying to create a 'round trip' graph using the graphviz. Given the result below, my objective is to have the PINK squares between the NET and the COM (note from the picture below that they are pushed to the right after the NET). the COM must…
adhg
  • 10,437
  • 12
  • 58
  • 94
0
votes
1 answer

Generate clickable dot graph for website?

I have a set of markdown files (experiments in a virtual lab notebook) that will be used to generate static webpages, and I'd also like to generate an index to go along with them that shows their relationships as a DAG (directed acyclic graph). So…
jefdaj
  • 2,025
  • 2
  • 21
  • 33
0
votes
1 answer

Using a DOT graph as a basis for tree GUI

I want to use a graph that is generated by DOT (pyDot in python) as the basis for an interactive Tree-structured GUI in which each of the nodes in the Tree could be widgets. The tree will basically be a binary Morse Code tree which start at the top…