如何在Graphviz中绘制重叠的簇? [英] How to draw overlapping clusters in Graphviz?

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

问题描述

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

I'm trying to use GraphViz to draw graphical models. However, I didn't find a way to make draw overlapping clusters. For example, how can I make "nodeA->nodeB" to lie inside both clusterA and clusterB?

推荐答案

您无法做到的AFAIK.

AFAIK you can't.

文档中所述的集群:

如果子图的名称以簇开头,则Graphviz会注意子图作为特殊聚类子图.如果支持,则布局引擎将进行布局,以便属于群集的节点一起绘制,其中包含集群的整个图形在边界矩形内.

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会引发错误).

The whole idea of clusters is not to overlap, but to group nodes (and graphviz raises an error when a node is part of two subgraphs).

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

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