Write multiple graphs into a file

I am trying to write multiple graphs into a file using write_graph function. But it seems this function can only write one graph at a time. To the best of my knowledge, there is no append option for that function (i.e. it only stores the last graph written into the file).

Any one could help me with this?