骨のダイスを転がそう
2010-01-13
_ [graphviz] subgraph のstyle を指定するには?
サンプルでは、subgraph が味気ない四角だったので何とかならんか、と思っていたところ、以下のような方法で cluster0 の角が丸くなるらしい。
digraph G { compound=true; subgraph cluster0 { style=rounded; a -> b; a -> c; b -> d; c -> d; } subgraph cluster1 { e -> g; e -> f; } b -> f [lhead=cluster1]; d -> e; c -> g [ltail=cluster0,lhead=cluster1]; c -> e [ltail=cluster0]; d -> h; }
CSS のクラスみたいに、ノードをグループ化して属性を設定するには、
{ node [.....]; "a"; "b"; } { node [.....]; "c"; "d"; }
とかやるみたい。カスケードはできるのか?
[ツッコミを入れる]