graph was rewritten