title: subgraph cluster ranking in dot
body: <p>I'm trying to use graphviz on media wiki as a documentation tool for software.</p>
  
  <p>First, I documented some class relationships which worked well. Everything was ranked vertically as expected.</p>
  
  <p>But, then, some of our modules are dlls, which I wanted to seperate into a box. When I added the nodes to a cluster, they got edged, but clusters seem to have a LR ranking rule. Or being added to a cluster broke the TB ranking of the nodes as the cluster now appears on the side of the graph.</p>
  
  <p>This graph represents what I am trying to do: at the moment, cluster1 and cluster2 appear to the <em>right</em> of cluster0.</p>
  
  <p>I want/need them to appear below.</p>
  
  <pre><code>&lt;graphviz&gt;
  digraph d {
      subgraph cluster0 {
        A -&gt; {B1 B2}
        B2 -&gt; {C1 C2 C3}
        C1 -&gt; D;
      }
      subgraph cluster1 {
        C2 -&gt; dll1_A;
        dll1_A -&gt; B1;
      }
      subgraph cluster2 { 
        C3 -&gt; dll2_A;
      }
      dll1_A -&gt; dll2_A;
  }
  &lt;/graphviz&gt;
  </code></pre>
  
  <p><img src="https://imgur.com/72Gqk.jpg"/></p>