Graph reformatting