Graph cleanup.