Updating Graphs / Phase code