Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2003-01-14 10:24:55


Hi Loic,

Take a look at boost/graph/adjacency_list_io.hpp and
libs/graph/example/adjacency_list_io.cpp.

Also there are functions to read and write graphs in the graphviz
format... though the primary reason for that format is for creating
postscript displays of graphs, not for persistence.

Cheers,
Jeremy

On Tue, 14 Jan 2003, loic d'Anterroches wrote:
moteur> Hello,
moteur>
moteur> After looking into the mailing list archives, the documentation
moteur> and over the net, I haven't find the answer to my question, that
moteur> is why I ask you.
moteur>
moteur> I want to save a graph in a file to restore the state of my
moteur> algorithm later. For example I have a graph with complete family
moteur> (like in family-tree-eg.cpp) I want to save it, then restore it to
moteur> add new members. I am coming from FORTRAN, so the objects are not
moteur> so complex, it is quite easy to save matrix etc... Here, how to
moteur> serialize my graph with the properties attached to edge and vertix
moteur> easily? Like the serialization process of MFC (I am using VC++ 6)?
moteur> I feel a little bit stupid, especially because, it seams that
moteur> nobody has asked this question before!
moteur>
moteur> Thank you for your help,
moteur> loic d'Anterroches

----------------------------------------------------------------------
 Jeremy Siek http://php.indiana.edu/~jsiek/
 Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
 C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk