Reformat graph