Are GraphViz dot files deterministic?

房东的猫 提交于 2019-12-03 14:23:00

I 've experimenting a lot with different rendering environment like online / cli.

You have a good chance to get different results if you use different graphviz versions. Within a same version I never have had problems of non-deterministics in dot graphs.

Another topic could be, if you use special utf-fonts, which could be rendered on different system different. For e.g. emoji-Flags rendering on windows vs. mac/unix.

Perhaps the wrapper / calling tools like doxygen / understand / pygraph / jgraph / gograph etc. pp. could be a source for different dot-files on different system.

I would state the dot-graph itself is very deterministic within the same version.

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!