added functionality to save get and manupulate graph data