mergegraph with recusive save