How to nest clusters with Zest [message #1236355] |
Mon, 27 January 2014 02:15 |
keynne Belle Messages: 30 Registered: January 2013 |
Member |
|
|
Hello.
I would like to know how to write a Zest graph with nested clusters. For instance, how can I modify the code below so that the nested clusters can be visualized using Zest? I would also like to know if it is possible to customize graphs created with Zest i.e, specify the size of the clusters, the shape of the nodes or even the color of the node.
digraph zestGraph {
node [
fontsize="10"
shape = tab
]
subgraph cluster3{
label ="Cluster3"
rankdir = TB
subgraph cluster3_1{
label ="NestedCluster3_1"
node_2[
label="package2"
]
node_1[
label="package1"
]
}
subgraph cluster3_2{
label ="NestedCluster3_2"
node_3[
label="package3"
]
}
}
subgraph cluster2{
label ="Cluster2"
rankdir = TB
node_4[
label="package4"
]
node_5[
label="package5"
]
}
subgraph cluster1{
label ="Cluster1"
rankdir = TB
node_6[
label="package6"
]
}
node_2 -> node_3[ penwidth = 1, fontsize = 8, label="1" ]
node_2 -> node_4[ penwidth = 1, fontsize = 8, label="3" ]
node_1 -> node_3[ penwidth = 1, fontsize = 8, label="2" ]
node_3 -> node_5[ penwidth = 1, fontsize = 8, label="3" ]
node_3 -> node_4[ penwidth = 1, fontsize = 8, label="2" ]
node_4 -> node_3[ penwidth = 1, fontsize = 8, label="1" ]
node_4 -> node_5[ penwidth = 1, fontsize = 8, label="3" ]
node_5 -> node_3[ penwidth = 1, fontsize = 8, label="1" ]
node_5 -> node_6[ penwidth = 1, fontsize = 8, label="4" ]
}
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01944 seconds