title: Adding XML attributes to JUNG GraphML
body: <p>I'm using JUNG to construct a Graph and then writing out to GraphML using a GraphMLWriter.
  Using the <code>addVertexData</code> and <code>addEdgeData</code> methods I can get <code>&lt;data&gt;</code> tags output to the XML.</p>
  
  <p>e.g. I can get the following:</p>
  
  <pre><code>&lt;edge id="123" source="456" target="789"&gt;
      &lt;data key="firstname"&gt;John&lt;/data&gt;
  &lt;/edge&gt;
  </code></pre>
  
  <p>by adding a Transformer using <code>addEdgeData</code></p>
  
  <p>Is there a way for me to add XML attributes onto the edge node itself, e.g. to get the following?</p>
  
  <pre><code>&lt;edge id="123" source="456" target="789" label="theDescriptionOfMyEdge"&gt;
      &lt;data key="firstname"&gt;John&lt;/data&gt;
  &lt;/edge&gt;
  </code></pre>