Cluster

Facebook Twitter

Cluster. Example: Clusters. Cluster example [graphviz] 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, -- Cyril Brulebois graph G { compound=true; Node1 [label="R1", shape=circle]; subgraph cluster_Node1 { label="Node 1"; labelloc="b"; Node1 }; Node2 [label="R2", shape=circle]; subgraph cluster_Node2 { label="Node 2"; labelloc="b"; Node2 }; Node1 -- Node2 [ltail=cluster_Node1,lhead=cluster_Node2]; } %! /setupLatin1 { mark /EncodingVector 256 array def EncodingVector 0 ISOLatin1Encoding 0 255 getinterval putinterval EncodingVector 45 /hyphen put /InvScaleFactor 1.0 def /set_scale { dup 1 exch div /InvScaleFactor exch def scale } bind def /set_font { findfont exch scalefont setfont } def.