有没有办法计算DOT图在GraphViz中需要多长时间?

发布于 2025-02-04 05:43:09 字数 95 浏览 4 评论 0原文

有什么方法可以计算点图可能需要多长时间才能渲染?

我目前正在运行25,000个节点和42,000个边缘。这花了几个小时,我想知道是否放弃或在完成后获得估计的时间。

Is there any way to calculate how long a dot graph will likely take to render?

I am currently running with 25,000 nodes and 42,000 edges. It's taking some hours and I'd like to know if to give up or get an estimated time when it completes.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拔了角的鹿 2025-02-11 05:43:09

简短答案:不。
更长的答案:您可以做一些事情来更好地了解DOT在做什么,并使它运行速度更快。

  • 添加-v4 httpps> htttps:// wwww。 graphviz.org/doc/info/command.html#-v )命令行(帮助)将显示进度(未充分记录)(4是任意的),
  • 您可以使用5个或更多属性来使用这些属性提高性能( mclimit,nslimit,nslimit1,remincross searchsize )(同样,记录得不充分),请尝试将NSlimit和NSlimit1设置为2

。链接到更多性能信息:(

25,000个节点是相当数量的节点,但是42,000个边缘不是很多边/节点
有了很多节点,您也可以尝试其他一些GraphViz引擎(Neato,FDP,Circo,Twopi),一个或多个会更快地运行。

Short answer: nope.
Longer answer: There are things you can do to better understand what dot is doing and make it run faster.

  • Adding -v4 (https://www.graphviz.org/doc/info/command.html#-v) to the command line will (help) show progress (not well documented) (4 is arbitrary)
  • There are 5 or more attributes that you can use to improve performance (mclimit, nslimit, nslimit1, remincross and searchsize) (again, not well documented) As a guess, try setting nslimit and nslimit1 both to 2.

Here are some links to more performance info:

25,000 nodes is a fair number of nodes, but 42,000 edges is not that many edges/node
With that many nodes, you might also try some of the other Graphviz engines (neato, fdp, circo, twopi) Often, one or more will run much faster.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文