title: Vertex label in JUNG graph visualization
body: <p>I wrote a little graph visualizer class:</p>
  
  <pre><code>    public void simpleGraph(SparseMultigraph&lt;Vertex,SEdge&gt; graph, String name) {
  
      Layout&lt;Vertex, SEdge&gt; layout = new ISOMLayout(graph);
      layout.setSize(new Dimension(800,800));
      BasicVisualizationServer&lt;Vertex, SEdge&gt; vv = new BasicVisualizationServer&lt;Vertex, SEdge&gt;(layout);
      vv.setPreferredSize(new Dimension(850,850)); //Sets the viewing area size
  
      JFrame frame = new JFrame(name);
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frame.getContentPane().add(vv); 
      frame.pack();
      frame.setVisible(true);                 
  }
  </code></pre>
  
  <p>How can I add labels for vertices and edges? The Values are stored in my custom vertex class. Can I iterate over all vertices in the Layout or BasicVisualizationServer and add labels?</p>
  
  <p>Thanks for your help!</p>