Number: 1294
Title: nested cluster subgraph's box is not drawn
Submitter: Zack Weinberg
Date: Fri Feb 22 22:49:55 2008
Subsys: Dot
Version: 2.16
System: *-*-
Severity: minor
A cluster-subgraph nested inside a subgraph does not have its box drawn.

In the attached example, it is desired to have nodes C, D, and tag all appear on the same row, and also for there to be a box around C and D (but not tag). As best I can make sense of the manual, the construct

  subgraph {
     subgraph cluster0 {
         C D;

should do what I want. What actually happens is, C, D, tag are all on the same row, but the box around C and D does not appear. If I take the "subgraph cluster0" out of the anonymous block, then the box appears but "tag" is not put on the same row as C and D. After considerable messing around, I found that this construct produces the output I want:

  subgraph cluster0 { color=blue; C D; }
  subgraph { rank=same; D tag; }

but only with an obnoxious warning:

Warning: D was already in a rankset, ignored in cluster _anonymous_0

At any rate, it seems a clear bug to me that a cluster-subgraph's bounding box is not drawn just because it's nested inside another subgraph.
Input file:
Output file: b1294.eps
Owner: *
Status: *