0

I'd like to store a graph to a file. Usually I would do that in GraphML. But my nodes have non-scalar properties (e.g. the property "hobby" of node "Alice" has the values ["swimming", "reading"]). As defined in the GraphML specification, properties of nodes may only be scalars, not lists. I looked around and did not find any graph file format that supports lists as properties. Does anybody know such a format?

Cheers,

Manuel

manuels
  • 1,511
  • 3
  • 14
  • 26

1 Answers1

0

Since GraphML is a type of XML, you can use a custom XML schema to be able to add in your own custom properties to GraphML, which could include adding lists.

Extending GraphML and W3Schools Schema Tutorial

Dan
  • 2,157
  • 20
  • 24