clean up chord graph