tmc / dot

graphviz dot language support for Go
MIT License
21 stars 3 forks source link

Subgraphs should use the clause "subgraph" not "digraph #2

Closed alecthomas closed 11 years ago

alecthomas commented 11 years ago

This is what is currently generated:

digraph foo {
  digraph bar {
  }
}

But this is not valid dot. Need to use "subgraph" instead:

digraph foo {
  subgraph bar {
  }
}