I have 2D 1000:1000 grid of graph nodes which have references to their neighbors. I tried to serialize it with Boost.Serialize
, but it fails with Segmentation fault
(it works fine when I do it for 100:100 grid only). Also tried libnop
but it doesn't support pointers at all.
What's the easiest way to conveniently serialize graphs in C++ without restructuring the graph every time you want to read/write to file?