Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are GraphViz dot files deterministic?

Tags:

graphviz

dot

I am making some GraphViz dot graphs within my source code using Doxygen.

Question: Are the graphs produced by a specific dot file guaranteed to always produce the same output?

Is this the case for different computers, at different times of day, on different architectures, etc?

I am considering using compass points to refine my graph and make it look nicer.

I am wondering if there is any "randomness" to the initial seeding of the graph layout, or any "implementation-defined" portions to the layout engine. I don't want to go to a lot of effort to optimize output for my system, if it won't look the same on others systems. This will be used by both Windows and Mac users. TIA

like image 319
Josh Petitt Avatar asked Feb 22 '13 06:02

Josh Petitt


People also ask

What is a .DOT file graph?

DOT is the text file format of the suite GraphViz. It has a human-readable syntax that describes network data, including subgraphs and elements appearances (i.e. color, width, label).

What is the dot language called?

What is Braille? Braille is a system of touch reading and writing for blind persons in which raised dots represent the letters of the alphabet. It also contains equivalents for punctuation marks and provides symbols to show letter groupings.

What is Pydot in Python?

The pydot package is an interface to Graphviz. It is written in pure Python, and it can parse and dump into the DOT language used by Graphviz. A folder tree structure in a computer comprising of a directory, sub-directory, files, etc. is also an example of a directed graph.


1 Answers

I believe, by default the graphs produced from graphviz are deterministic because the initial node placement and the solver are such. To generate a different image, The graph attribute 'start' is set to rand.

Ref: https://www.graphviz.org/pdf/neatoguide.pdf

like image 125
Meenu Raj Avatar answered Sep 18 '22 07:09

Meenu Raj