骨のダイスを転がそう

2009|01|02|03|04|05|06|07|10|12|
2010|01|02|03|04|05|06|07|08|09|10|11|
2011|02|03|05|06|07|08|09|10|11|12|
2012|01|02|04|05|09|10|11|12|
2013|01|02|04|
2014|11|
2015|01|04|05|
2016|06|07|08|09|11|
2017|01|02|03|04|
2018|03|

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";
}

とかやるみたい。カスケードはできるのか?