title: jgraphx: hierarchical layout reduce distance between nodes
body: <p>I'm using jgraphx to visualize a control low inside a method. Thus, i'm using the <code>mxHierarchicalLayout</code>. But in the result graph the distance between two nodes is too big. (see img)</p>
  
  <p><a href="https://i.stack.imgur.com/XegBo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XegBo.png" alt="enter image description here"></a></p>
  
  <p>I want to reduce the yellow marked areas. </p>
  
  <p>Im adding nodes with:</p>
  
  <pre><code>Object v1 = graph.insertVertex(parent, u.toString(), u.toString(), 0, 0, 0, 0);
  </code></pre>
  
  <p>to set them all to the same spot. Afterwards im using the mxHierarchicalLayout:</p>
  
  <pre><code>// define layout
  mxIGraphLayout layout = new mxHierarchicalLayout(graph);
  // layout graph
  layout.execute(graph.getDefaultParent());
  </code></pre>
  
  <p>is there a way to compress the graph ui?</p>