modified graph