开发者

Graph File Format that supports list as attributes

开发者 https://www.devze.com 2023-03-04 06:07 出处:网络
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

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,开发者_StackOverflow社区 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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消