22 Feb
2022
22 Feb
'22
12:39 p.m.
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 <tiago@skewed.de>