Implemented method generateXmlFromGraph