glejeune/Ruby-Graphviz — Issue #35: Making an edge between a node and a subgraph
Author: veberle
Created: 2012-01-27 21:32:15+00:00
State: open

Making an edge between a note and a subgraph doesn't seem to work. Instead a new node is generated with the name of the subgraph.

```
c0 = g.add_graph( "cluster0", "label" => "cluster #1" )
a0 = c0.add_nodes( "a0" )

c1 = g.add_graph( "cluster1", "label" => "cluster #2" )
b0 = c1.add_nodes( "b0" )

g.add_edges(c0,c1)
g.add_edges(c0,b0)
```

is generated to

```ruby
digraph G {
subgraph cluster0 {
label = "cluster #1";
a0 [label = "a0"];
}
subgraph cluster1 {
label = "cluster #2";
b0 [label = "b0"];
}
cluster0 [label = "cluster0"];
cluster1 [label = "cluster1"];
cluster0 -> cluster1
cluster0 -> b0
}
```
I was trying something like [this](http://www.graphviz.org/Gallery/undirected/fdpclust.html)