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]
fdpclust.gv.txt
graph G {
fontname="Helvetica,Arial,sans-serif"
node [fontname="Helvetica,Arial,sans-serif"]
edge [fontname="Helvetica,Arial,sans-serif"]
layout=fdp
e
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.