[graphviz-interest] different rankdir in a graph ( second mail sorry )
Paul Roland <[email protected]> Wed, 12 Nov 2014 15:32:58 +0000
| Newsgroups | gmane.comp.video.graphviz |
|---|---|
| Message-ID | <CA+3OdkO4LKAm_pZC6c52AALVmN3Qo663VYYG2ZkFrJf8KOOrqg@mail.gmail.com> |
Posted a mail a few minutes ago and formgot to include my dot file. Copy of
it:
Hello folks I hope I am posting in the right way.
I am new to this, and I would appreciate if somebody will have a minute to
point me in the right direction here.
I am trying to setup a network graph between two sites, Paris and Berlin,
but I want them to arrange like the paris site to have LR rankdir and
Berlin site to have RL rankdir, but it seems like I cannot apply rankdirs
to subgraphs. Most likely I am not doing it properly so could you please
give me a hint? Spent some time on google with other people having this
issue but none worked for me.
Below is my .dot file, attached current layout and desired layout
digraph {
rankdir=RL;
subgraph cluster1 {
style=dotted;
rank=same;
label = "Paris";
parisgw1 [label="parisgw1",shape=rect]
parisgw2 [label="parisgw2",shape=rect]
VDFpgw1 [label="VDF",shape=rect]
VDFpgw2 [label="VDF",shape=rect]
l3pgw1 [label="l3",shape=rect]
l3pgw2 [label="l3",shape=rect]
parisgw1->{VDFpgw1 l3pgw1}
parisgw2->{VDFpgw2 l3pgw2}
}
subgraph cluster2 {
label = "Berlin";
style=dotted;
rank=same;
berlingw1 [label="berlingw1",shape=rect]
berlingw2 [label="berlingw2",shape=rect]
orgbgw1 [label="org",shape=rect]
orgbgw2 [label="org",shape=rect]
colbgw1 [label="col",shape=rect]
colbgw2 [label="col",shape=rect]
berlingw1->{orgbgw1 colbgw1}
berlingw2->{orgbgw2 colbgw2}
}
VDFpgw1->orgbgw1
[constraint=false,dir=both,color=Red,arrowsize=0.5,label="tun0",fontsize=12,fontname=mono];
VDFpgw2->orgbgw1
[constraint=false,dir=both,color=Red,arrowsize=0.5,label="tun0",fontsize=12,fontname=mono];
l3pgw1->orgbgw1
[constraint=false,dir=both,color=Red,arrowsize=0.5,label="tun0",fontsize=12,fontname=mono];
l3pgw2->orgbgw1
[constraint=false,dir=both,color=Red,arrowsize=0.5,label="tun0",fontsize=12,fontname=mono];
}
_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest
desired.jpg
(image/jpeg, 49.8 KB) - not displayed
grapgh1.png
(image/png, 7.3 KB) - not displayed