jung
jung copied to clipboard
Support attribute type for GraphML export
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
@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?