Serializing a Graph Structure Using Boost
23 Dec
2013
23 Dec
'13
1:36 p.m.
Hi, I would like to use boost to serialize my graph (it's in the boost adjacency list format)... I couldn't do it... I managed to serialize an array and some other structures as follows: int I[5] = {0,1,2,3,4}; boost::archive::text_iarchive ia(file), ia << I; but that doesn't work with graph data in the boost adjacency list format... when I write: ia << g //g is my graph I get the following compilation error: 'serialize' is not member of 'VertexProperties' 'VertexProperties' is a structure that I wrote as follows: struct VertexProperties { int id; int weight; }; I don't know how to add 'serialize' as a member function... I also tried "SavingArchieve" template but couldn't do it... Any idea's please? or references?
3993
Age (days ago)
3993
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nouf M.