jung icon indicating copy to clipboard operation
jung copied to clipboard

Support attribute type for GraphML export

Open jenshaase opened this issue 8 years ago • 1 comments

Hi,

I'm using Gephi to debug my generated graphs. Therefore I export the graph to the GraphML format with the GraphMLWriter. It would be nice if each data key can get an attribute type. Gephi uses these attribute types for sorting and other purposes.

Example current export:

<?xml version="1.0" encoding="UTF-8"?>
<graphml [...]>
  <key id="weight" for="node">
    <desc>Weight</desc>
    <default></default>
  </key>
  [...]
</graphml>

Example required export (node the attr.type attribute of the key):

<?xml version="1.0" encoding="UTF-8"?>
<graphml [...]>
  <key id="weight" for="node" attr.type="double">
    <desc>Weight</desc>
    <default></default>
  </key>
  [...]
</graphml>

Best regards, Jens

jenshaase avatar May 10 '16 08:05 jenshaase

@jrtom I was able to build a complete graphml parser using jaxb. Since this attr.type attribute is standard graphml it is covered as well. So how can I provide you this parser? Should I copy the graphml module of jung?

wumpz avatar Nov 19 '19 07:11 wumpz