gpt4 book ai didi

graphviz - 如何在Graphviz中绘制重叠的簇?

转载 作者:行者123 更新时间:2023-12-04 12:34:48 24 4
gpt4 key购买 nike

我正在尝试使用 GraphViz 绘制图形模型。但是,我没有找到绘制重叠簇的方法。例如,如何让“nodeA->nodeB”同时位于 clusterA 和 clusterB 中?

最佳答案

AFAIK 你不能。

文档中描述的集群:

If the name of the subgraph begins with cluster, Graphviz notes the subgraph as a special cluster subgraph. If supported, the layout engine will do the layout so that the nodes belonging to the cluster are drawn together, with the entire drawing of the cluster contained within a bounding rectangle.



集群的整个想法不是重叠,而是对节点进行分组(当节点是两个子图的一部分时,graphviz 会引发错误)。

关于graphviz - 如何在Graphviz中绘制重叠的簇?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12680865/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com