Dear Rafael,

>> In graphml, ids are not graph data. If your source uses node ids for
>> data you should fix it and use <key>/<data> instead (see 'Additional
>> Data' in <http://graphml.graphdrawing.org/specification.html>
>> <http://graphml.graphdrawing.org/specification.html>). Node ids are
>> for internal parsing use and are not guaranteed to be preserved.

This is not quite right. If the node/edge ids are not in the canonical format, they are imported as property maps when the graph is loaded.

The property maps can be accessed as:

   g.vp["_graphml_vertex_id"]

and

   g.ep["_graphml_edge_id"]

Best,
Tiago

--
Tiago de Paula Peixoto <ti...@skewed.de>
_______________________________________________
graph-tool mailing list -- graph-tool@skewed.de
To unsubscribe send an email to graph-tool-le...@skewed.de

Reply via email to