Re: [graphviz-interest] different rankdir in a graph ( second mail sorry )

"Emden R. Gansner" <[email protected]> Thu, 13 Nov 2014 09:30:29 -0500
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
You can tweak the graph to get the effect of different rankdir values:

digraph  {
     rankdir=LR;
     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}
     }
     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]
         {VDFpgw1 l3pgw1}->parisgw1 [dir=back]
         {VDFpgw2 l3pgw2}->parisgw2 [dir=back]
     }
     VDFpgw1->orgbgw1 
[constraint=false,dir=both,color=Red,arrowsize=0.5,xlabel="tun0",fontsize=12,fontname=mono];
     VDFpgw2->orgbgw1 
[constraint=false,dir=both,color=Red,arrowsize=0.5,xlabel="tun0",fontsize=12,fontname=mono];
     l3pgw1->orgbgw1 
[constraint=false,dir=both,color=Red,arrowsize=0.5,xlabel="tun0",fontsize=12,fontname=mono];
     l3pgw2->orgbgw1 
[constraint=false,dir=both,color=Red,arrowsize=0.5,xlabel="tun0",fontsize=12,fontname=mono];
}

_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest