Fix for driving distance bad_alloc issue by computing an approximate graph size.