reduce graph size