Removed unnecessary code in GraphController.