graph to data