Hi there,
I want to create an xml-file out of my Graph... So I'm using the
write_graphml Function with dynamic_properties. Everything is fine, I get a
file, but there are wrong source- and target- ID's in the edge structs ...
Here an example:
<node id="n1">
<data key="key0">vertex_7</data>
<data key="key2">bf88aa63-bff1-5c04-8daf-37a5e31981f6</data>
<data key="key6">12.5</data>
<data key="key7">7.5</data>
</node>
<edge id="e1" source="n1" target="n2">
<data key="key1">edge_4_5</data>
<data key="key3">26c512cb-46d8-5eb5-8021-2aac9f492227</data>
<data key="key4">45844430-f1ea-5355-b7ce-eb566fe89256</data>
<data key="key5">ecac63d6-e531-5ce8-9578-13cb63d040de</data>
</edge>
In the edge there is the wrong source-ID - it should be the ID of Vertex 4
(source="n0") not 7 (source="n1")
My Graph:
struct vertex
{
float x;
float y;
string name;
string uuid;
};
struct edge
{
string source_v_uuid; //startpoint uuid
string target_v_uuid; //endpoint uuid
string name; // name - edge_from_src-Vertex_to_dest-Vertex
string uuid;
};
typedef boost::adjacency_list