cluster and graph labels bug?

I want to label a graph as well as some of its clusters. I noticed that if the graph has a label, then all its clusters that don't have their own label assigned will inherit the graph label. Minimal working example is:

digraph {
  label="why does this label appear twice?";
  subgraph cluster_0 {
    "v10";
  }
}

not a bug exactly

As you noticed, attributes are inherited at the point where a graph object is created.

Why not set the label after subgraphs are created? 

digraph G {
 subgraph cluster_0 {
    "v10";
 }
 label = "this is not inherited by cluster_0";
}

 

 

Recent comments