Add persistence feature to Graph.