GraphIO.jl
GraphIO.jl copied to clipboard
Support MetaGraphs.jl
Code from (unregistered) NestedGraphIO.jl returns home as described in #49.
This PR enables support for MetaGraphs
in GraphML
format.
It follows the paradigm of http://graphml.graphdrawing.org/ to define attributes in the graph.
The following features are supported:
- the key/data extension mechanism
- default values for keys
- loading/saving graphs or
Dict
of graphs
The implementation is done using XPath and DOM and not the EzXML.StreamReader
for the reason that there needs to be some memory on the parser in order to remember whose are the properties read.
The current API is a bit different. The reason is that now the user now needs also to pass an extra argument to mention the desired graph type s/he wishes to parse (in this case ::MetaGraphs.MGFormat
).