This question asks about storing one chart in a relational database. The solution in this case is clear: one table for nodes, one table for edges.
I have a graph data structure that evolves over time, so I would like to save the βsnapshotsβ of this graph in the database. I imagine hundreds of such shots.
One solution is to create a whole new pair of tables of nodes and edges (as indicated above) for each snapshot. Is there a better solution?
EDIT: asked what I would like to do with this database. I believe that I will not make any requests, except to deduce all of the graphs in MySQL from C ++, and then load it all back into C ++ data structures. Therefore, I am looking to use MySQL for storage, and not for efficient random access / search.
source share