add data conversion to graph object in separated method