Graphviz:使边缘不影响节点的层次结构 [英] Graphviz: make edges not affecting the hierarchy of nodes

查看:88
本文介绍了Graphviz:使边缘不影响节点的层次结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在图形上添加了边(绿色),从而形成了节点层次结构.如何添加不影响层次结构的次要边缘(红色)?

I add edges (green) to graph, that makes hierarchy of nodes. How to add minor edges (red) that not affecting on the hierarchy?

这是Qt graphViz库.

It's Qt graphViz library.

推荐答案

如果您希望边缘不会影响排名,则只需设置

If you want an edge to not have an impact on ranking, you can simply set the constraint attribute to false:

如果为false,则不使用边缘对节点进行排名.

If false, the edge is not used in ranking the nodes.

示例:

node1 -> node2 [constraint=false];

这篇关于Graphviz:使边缘不影响节点的层次结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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