Questions tagged «subgraph»

3
GraphViz-如何连接子图?
用的DOT语言GraphViz,我试图表示一个依赖关系图。我需要能够在容器内具有节点,并能够使节点和/或容器依赖于其他节点和/或容器。 我subgraph用来代表我的容器。节点链接工作正常,但我不知道如何连接子图。 给定下面的程序,我需要能够连接cluster_1并cluster_2使用箭头,但是我尝试过的任何操作都会创建新节点而不是连接集群: 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" …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.