Renaming and graphs