Reorganize graphs