使边缘不影响节点的层次结构

使边缘不影响节点的层次结构

本文介绍了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.

推荐答案

如果您希望边缘不会影响排名,则只需设置属性设置为false:

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

示例:

node1 -> node2 [constraint=false];

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

09-05 04:31
查看更多