title: Compacting a digraph in Graphviz using Dot Language
body: <p>I'm trying to achieve a visualization of a specific graph (a Cayley graph of a symmetric permutation group) as the one done here but using Graphviz 2.28 with Dot.</p>
  
  <p><a href="https://i.stack.imgur.com/Q1kSA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q1kSA.png" alt="cayley"></a><br>
  <sub>(source: <a href="http://www.euclideanspace.com/maths/discrete/groups/categorise/finite/cube/cayleyGraph.png" rel="nofollow noreferrer">euclideanspace.com</a>)</sub>  </p>
  
  <pre><code>digraph cayley {
      i -&gt; x [color=red];
      i -&gt; y [color=blue];
      x -&gt; xx [color=red];
      x -&gt; xy [color=blue];
      y -&gt; yx [color=red];
      y -&gt; yy [color=blue];
      xx -&gt; xxx [color=red];
      xx -&gt; xxy [color=blue];
      xy -&gt; xyx [color=red];
      xy -&gt; xyy [color=blue];
      yx -&gt; yxx [color=red];
      yx -&gt; xyx [color=blue];
      yy -&gt; yyx [color=red];
      yy -&gt; yyy [color=blue];
      xxx -&gt; i [color=red];
      xxx -&gt; xxxy [color=blue];
      xxy -&gt; xxyx [color=red];
      xxy -&gt; xxyy [color=blue];
      xyx -&gt; xyxx [color=red];
      xyx -&gt; xxyx [color=blue];
      xyy -&gt; yy [color=red];
      xyy -&gt; xyyy [color=blue];
      yxx -&gt; yxxx [color=red];
      yxx -&gt; xx [color=blue];
      yyx -&gt; xxyy [color=red];
      yyx -&gt; xyxx [color=blue];
      yyy -&gt; yyyx [color=red];
      yyy -&gt; i [color=blue];
      xxxy -&gt; xxxyx [color=red];
      xxxy -&gt; yyx [color=blue];
      xxyx -&gt; yyy [color=red];
      xxyx -&gt; xxxyx [color=blue];
      xxyy -&gt; xyy [color=red];
      xxyy -&gt; yxx [color=blue];
      xyxx -&gt; xyxxx [color=red];
      xyxx -&gt; xxx [color=blue];
      xyyy -&gt; xyyyx [color=red];
      xyyy -&gt; x [color=blue];
      yxxx -&gt; y [color=red];
      yxxx -&gt; xyyyx [color=blue];
      yyyx -&gt; xxy [color=red];
      yyyx -&gt; xyxxx [color=blue];
      xxxyx -&gt; xyyy [color=red];
      xxxyx -&gt; yx [color=blue];
      xyxxx -&gt; xy [color=red];
      xyxxx -&gt; yxxx [color=blue];
      xyyyx -&gt; xxxy [color=red];
      xyyyx -&gt; yyyx [color=blue];
  }
  </code></pre>
  
  <p>My Dot generates the following layout: <img src="https://i.stack.imgur.com/NmOHW.png" alt="cayley"> which is a pretty huge graph compared with the previous one. Is there any <a href="https://www.graphviz.org/doc/info/attrs.html" rel="nofollow noreferrer">attribute</a> that can compact the graph as close as possible to the first one ?</p>