Undirected Graph Clusters

The fdp layout program supports edges between nodes and clusters and cluster-to-cluster. To make edges with clusters as endpoints, fdp relies on the convention that both nodes and cluster subgraphs have identifical names with the prefix cluster, as shown in the example.

[Input .gv File] [SVG] [Raster Image]

graph G {
  node [fontname="Helvetica,Arial,sans-serif"]
  edge [fontname="Helvetica,Arial,sans-serif"]
  subgraph clusterA {
    a -- b;
    subgraph clusterC {
      C -- D;
  subgraph clusterB {
    d -- f
  d -- D
  e -- clusterB
  clusterC -- clusterB

Copyright © 1996-2004 AT&T. All rights reserved.

Last modified April 24, 2022: Update fdpclust.md (697ce67)