Layers and Clusters

 Hi,
I need to create graphs with clusters that are not perfectly hierarchical.  For example, nodes a and b are in one cluster and nodes b and c are in another cluster.  I had hoped that putting the clusters into different layers might solve the problem, but it does not.  Any given node appears only in a single cluster.  The following dot input demonstrates the problem:
digraph G { layers="1:2"; node [layer=all]; edge [layer=all];
a0 -> b0; a0 -> b1;
subgraph cluster0 { layer = "1"; a0; b0; label = "process #1"}
subgraph cluster1 { layer="2"; a0; b1; label = "process #2"} 
}
Is what I want to do possible in dot?
Thanks for any help you can provide.
--andy
 

Layers and Clusters

It is not really possible in dot, which assumes that clusters form a strict hierarchy, though for sufficiently simple cases, it might be possible to hack something together. The general problem of drawing Euler diagrams is difficult.

Recent comments