background preloader


Facebook Twitter

Cluster. Example: Clusters. Cluster example [graphviz] Graphics - GraphViz - How to connect subgraphs. For ease of reference the solution described in HighPerformanceMark's answer, applied directly to the original question, looks like this: digraph G { graph [fontsize=10 fontname="Verdana" compound=true]; 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"; label = "Container C"; color=blue; } // Edges between nodes render fine "Item 1" -> "Item 2"; "Item 2" -> "Item 3"; // Edges that directly connect one cluster to another "Item 1" -> "Item 3" [ltail=cluster_0 lhead=cluster_1]; "Item 1" -> "Item 5" [ltail=cluster_0 lhead=cluster_2]; } and produces output: Regarding the worry that one might want to connect a cluster with no nodes inside it, my solution has been to always add a node to every cluster, rendered with style=plaintext.

graphics - GraphViz - How to connect subgraphs

Graphviz - Interest - lhead/ltail. On 19/12/2007, Alex Poylisher wrote: > The attached graph contained some problems, so I am resending.

Graphviz - Interest - lhead/ltail

The > problem is still there, though. Looks like two problems: - syntax: use [foo=bar,baz=quux] instead of {foo=bar;baz=quux;} - you're considering lhead and ltail backwards. See what happens if you try to draw a *di*graph instead, replacing -- with ->. The attached file looks like what you want to achieve. Cheers,