remove unused graphs