Number: 899
Title: NO sub-graph functionality
Submitter: bugbear
Date: Tue Mar 7 10:38:00 2006
Subsys: Dot
Version: dot version 2.6 (Thu Jan 19 12:27:14 UTC 2006)
System: x86-Linux-
Severity: minor
Problem:
I can't get sub-graphs to do - anything.

I'm running dot -Tsvg -o v.svg t.dot

And I get no subgraph boxing or labelling
Input:

digraph G {
    subgraph {
        label = "SOME LABEL";
        color = blue;
        style = filled;
        "NoFlow-Finished" -> "NoFlow-Finished";
        "NoFlow-Orphaned" -> "NoFlow-Orphaned";
        "NoFlow-Error" -> "NoFlow-Error"
    }
}
Comments:
[erg] Subgraphs play many roles within graphviz, including scopes for attribute assignment and very general topological information. The role you want is handled by cluster subgraphs. These are subgraphs whose name begins with "cluster". This is documented in the dot user's guide

http://www.graphviz.org/Documentation/dotguide.pdf

There are also examples on the gallery page:

http://www.graphviz.org/Gallery.php

You can look at the corresponding dot input to see how this is done.
Owner: erg
Status: Fixed