a) if the timeline nodes are themselves are grouped in a cluster, other clusters do not expand as necessary to layout the nodes with ranks given by the timeline
b) if the timeline nodes are not in a cluster, they are put inside the
clusters which I do not want.
Input:
Comments:
digraph BDFFDFF{
size="11,11"
subgraph clusterKM {
node[shape=plaintext]
edge[style=invis]
"(141,908)" -> "(151,308)"
"(151,308)" -> "(152,651)"
"(152,651)" -> "(152,708)"
"(152,708)" -> "(159,811)"
"(159,811)" -> "(160,0)"
"(160,0)" -> "(180,0)"
}
subgraph cluster1 {
{rank=same;"(141,908)";"1:AEND (1,0)"[fontcolor=green,shape=polygon,sides=4,peripheries=2,style=filled,height=0.1]}
{rank=same;"(151,308)";"1:LKUE (95,0)"[fontcolor=blue,shape=box,height=0.1]}
}
subgraph cluster2 {
{rank=same;"(152,651)";"3:WEI (14,4)"[fontcolor=red,shape=plaintext]}
{rank=same;"(159,811)";"3:AEND (86,0)"[fontcolor=green,shape=polygon,sides=4,peripheries=2,style=filled,height=0.1]}
"3:LKUE (1,0)"[fontcolor=blue,shape=box,height=0.1]
}
subgraph cluster3 {
{rank=same;"(152,708)";"9:LKUE (15,0)"[fontcolor=blue,shape=box,height=0.1]}
{rank=same;"(160,0)";"9:ELL (62,0)"[fontcolor=brown]}
{rank=same;"(180,0)";"9:AEND (62,0)"[fontcolor=green,shape=polygon,sides=4,peripheries=2,style=filled,height=0.1]}
}
"1:AEND (1,0)" -> "1:LKUE (95,0)"
"1:LKUE (95,0)" -> "3:LKUE (1,0)"
"3:LKUE (1,0)" -> "3:WEI (14,4)"
"3:WEI (14,4)" -> "3:AEND (86,0)"
"3:WEI (14,4)" -> "9:LKUE (15,0)"
"9:LKUE (15,0)" -> "9:ELL (62,0)"
"9:ELL (62,0)" -> "9:AEND (62,0)"
}
[erg] This is related to an earlier request by Charles Martin <martin@chasm.org>
who wanted to do protocol diagrams such as
+-----------------+ +-----------------+
| Server | | Client |
| | | |
| 1 <-------------- 0 |
| | | | |
| +------|----+ | | +--------+ |
| | Foo | | | | | Bar | |
| | v | | | | | |
| | 2 ----------------------> 3 | |
| | | | | | | | |
| | | | | | v | |
| | 5 <---------------------- 4 | |
| | | | | | | | |
| | | | | | | | |
| +------|----+ | | +--------+ |
| V | | |
| 6 --------------> 7 |
| | | |
+-----------------+ +-----------------+
but again the cluster semantics prohibit this.