Tag: 点有

GraphViz – 如何连接子图?

在GraphViz的DOT语言中,我试图表示一个依赖关系图。 我需要能够有一个容器内的节点,并能够使节点和/或容器依赖于其他节点和/或容器。 我使用subgraph来表示我的容器。 节点链接工作得很好,但我不知道如何连接子图。 鉴于下面的程序,我需要能够用箭头连接cluster_1和cluster_2 ,但是我尝试过的任何事情都会创build新的节点,而不是连接集群: digraph G { graph [fontsize=10 fontname="Verdana"]; node [shape=record fontsize=10 fontname="Verdana"]; subgraph cluster_0 { node [style=filled]; "Item 1" "Item 2"; label = "Container A"; color=blue; } subgraph cluster_1 { node [style=filled]; "Item 3" "Item 4"; label = "Container B"; color=blue; } subgraph cluster_2 { node [style=filled]; "Item 5" "Item 6"; […]