graph-tool: How to save Property maps elements in the graphml?

1.2k views Asked by At

It is my first attempt to use graph-tools with python. I have a graph with some important information in Properties Maps (names, topics,...).

When I save the graph using g.save("test.graphml"), the Property Map related information is not saved: there is just vertices and edges.

I couldn't find a way to save that information as well. Is it possible ?

Thanks in advance.

1

There are 1 answers

0
Peaceful On

You can make property maps internal. See this link:

https://graph-tool.skewed.de/static/doc/quickstart.html#internal-property-maps