Created method to save graph as a TGF