Added support for swaping the graph data all at once