remove duplicate graphs