title: Preventing graphviz from rearranging nodes
body: <p>I am trying to visualize a tree structure using graphviz, problem is as the graph gets bigger graphviz starts to rearrange the order of the nodes. Say I have the following,</p>
  
  <pre><code>  A
  / | \
  B C D
  </code></pre>
  
  <p>it becomes,</p>
  
  <pre><code>  A
  / | \
  B D C
  </code></pre>
  
  <p>it probably does this to save space but in my context order of the nodes matter I have tried adding,</p>
  
  <pre><code>graph [ordering="out"];
  </code></pre>
  
  <p>but it did not change the output.</p>
  
  <p>EDIT:</p>
  
  <pre><code>digraph bt {
  graph [ordering="out"];
  node [style="rounded", shape=box]
  N_2386 -&gt; N_2387
  N_2387 -&gt; N_2388
  N_2388 -&gt; N_2389
  N_2388 -&gt; N_2390
  N_2387 -&gt; N_2391
  N_2386 -&gt; N_2392
  subgraph cluster_2393 {
  labeljust = "l";
  style=dashed;color="#B0B0B0"
  N_2392 -&gt; N_2394
  N_2394 -&gt; N_2395
  N_2395 -&gt; N_2396
  N_2396 -&gt; N_2397
  N_2397 -&gt; N_2398
  N_2397 -&gt; N_2399
  N_2396 -&gt; N_2400
  N_2400 -&gt; N_2401
  N_2400 -&gt; N_2402
  N_2395 -&gt; N_2403
  N_2403 -&gt; N_2404
  N_2404 -&gt; N_2405
  N_2405 -&gt; N_2406
  N_2403 -&gt; N_2407
  N_2407 -&gt; N_2408
  N_2408 -&gt; N_2409
  N_2409 -&gt; N_2410
  N_2410 -&gt; N_2411
  N_2411 -&gt; N_2412
  N_2412 -&gt; N_2413
  N_2412 -&gt; N_2414
  N_2412 -&gt; N_2415
  N_2411 -&gt; N_2416
  N_2416 -&gt; N_2417
  N_2416 -&gt; N_2418
  N_2416 -&gt; N_2419
  N_2408 -&gt; N_2420
  N_2408 -&gt; N_2421
  N_2403 -&gt; N_2422
  N_2395 -&gt; N_2423
  N_2392 -&gt; N_2424
  }
  }
  </code></pre>
  
  <p>graph in question What I need is, N_2387 should be on the right N_2392 should be on the left. Which is the order I insert them.</p>