Conversion from Graph to TGraph