add graph size estimation