Reorganize graph information