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 日:更新 cluster.md:移除重複的 dot (f227bc5)