title: Why does a top to bottom graphviz dot graph get layed out counter clockwise?
body: <p><strong>I updated the question with graphics and more details. Thanks to marapet, without the hack I couldn´t have generated the desired results as images.</strong></p>
  
  <p>why does this code produce this graph?</p>
  
  <pre><code>digraph {
   rankdir = TB;
   1 -&gt; 2 -&gt; 3 -&gt; 1;
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/o9XDe.jpg" alt="" title="Hosted by imgur.com" /></p>
  
  <p>How can I get graphviz/dot to produce a clockwise direction like this?</p>
  
  <p><img src="https://i.stack.imgur.com/JSPoy.jpg" alt="" title="Hosted by imgur.com" /></p>
  
  <p><strong>Update</strong></p>
  
  <p>This is the final graph I want to generate (afaik logically correct this way)</p>
  
  <pre><code>digraph {
    rankdir = TB
    start -&gt; 1
    1 -&gt; 2 -&gt; 3 -&gt; 1
    3 -&gt; end
    3 -&gt; increment
    end -&gt; product
    {rank = same; 2; 3; increment}
    {rank = same; end; product}
  }
  </code></pre>
  
  <p>Which produces this result</p>
  
  <p><img src="https://i.stack.imgur.com/xtbpL.jpg" alt="" title="Hosted by imgur.com" /></p>
  
  <p>While I want this</p>
  
  <p><img src="https://i.stack.imgur.com/1qO3K.jpg" alt="" title="Hosted by imgur.com" /></p>
  
  <p>Thanks</p>