如何避免graphviz中的节点重叠? [英] How to avoid overlapping nodes in graphviz?

查看:184
本文介绍了如何避免graphviz中的节点重叠?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试绘制具有许多节点和边缘的图形.

I am trying to draw a graph with many nodes and edges.

但是,该图变得过于笨拙,节点和边线重叠.我尝试了以下操作,全部操作或组合操作(未成功).

However, the graph is becoming too clumsy, with nodes and edges overlapping. I tried (unsuccessfully), the following, all or combinations of these.

size = "12.0, 20.0!";
margin  = 0.0;
len = 1.0;

我正在使用neato生成png文件.

I am using neato to generate a png file.

尺寸规格似乎根本无效.

The size specification did not even seem to work.

任何提示将不胜感激.

推荐答案

尝试使用同一graphviz软件包中的sfdp或fdp.该工具具有两个参数 K repulsiveforce ,它们控制节点之间的距离.

Try using sfdp or fdp from the same graphviz package. This tools have two parameters K and repulsiveforce which control how far the nodes will be from each other.

此处中查找详细信息

这篇关于如何避免graphviz中的节点重叠?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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