GraphViz点文件是否具有确定性? [英] Are GraphViz dot files deterministic?

查看:63
本文介绍了GraphViz点文件是否具有确定性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Doxygen在源代码中制作一些GraphViz点图.

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.

我想知道图布局的初始种子是否存在任何随机性",或者布局引擎是否存在任何实现定义的"部分.如果在其他系统上看起来不一样,我不想花费很多精力来优化我的系统的输出. Windows和Mac用户都将使用此功能. TIA

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

推荐答案

我相信,默认情况下,由graphviz生成的图是确定性的,因为初始节点的位置和求解器都是这样的.要生成其他图像,请将graph属性'start'设置为rand.

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.

参考: https://www.graphviz.org/pdf/neatoguide.pdf

这篇关于GraphViz点文件是否具有确定性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆