cluster

サブグラフがクラスタであるかどうか

型: bool, デフォルト: false

サブグラフクラスタは異なるレンダリングがされます。例えば、dot はサブグラフクラスタの周りにボックスを描画しますが、非サブグラフクラスタの周りにはボックスを描画しません。

digraph cats {
  subgraph cluster_big_cats {
    // This subgraph is a cluster, because the name begins with "cluster"
    
    "Lion";
    "Snow Leopard";
  }

  subgraph domestic_cats {
    // This subgraph is also a cluster, because cluster=true.
    cluster=true;

    "Siamese";
    "Persian";
  }

  subgraph not_a_cluster {
    // This subgraph is not a cluster, because it doesn't start with "cluster",
    // nor sets cluster=true.
    
    "Wildcat";
  }
}
有効な対象
  • クラスタ
  • サブグラフ

Graphvizのコードベースで "cluster" を検索する

最終更新日 2022年9月17日: Update cluster.md: remove duplicate dot (f227bc5)