title: Java graph library for visualising flowchart-like diagrams
body: <p>I'm in the process of making an interface for drawing flow chart like diagrams (essentially circuit diagrams) that contain nodes that look like the following:</p>
  
  <pre><code>       +-------+
  in1 --&gt;|       |---&gt; out1
         |       |
  in2 --&gt;|       |
         |       |
  in3 --&gt;|       |---&gt; out2
         +-------+
  </code></pre>
  
  <p>i.e. each box has several input edges and several output edges. For visual clarity, it makes more sense if all the input edges are grouped on one side and all the output edges are grouped on the other.</p>
  
  <p>The interface will involve the user connecting the input and outputs of different boxes together.</p>
  
  <p>I'm trying to find a Java library that will help me build such an interface easily which will also have automatic layout tools for keeping the diagrams clean. <a href="http://www.jgraph.com/" rel="noreferrer">http://www.jgraph.com/</a> and <a href="http://jung.sourceforge.net/" rel="noreferrer">http://jung.sourceforge.net/</a> look like they'll do most of what I need but I'm not sure about making the nodes look like the above where inputs and outputs are clumped together. For example, I can't see how I could do this with JUNG.</p>
  
  <p>Can anyone suggest what library and should use and what I can do to make nodes look like the above?</p>