removed maxDistance from randomWaxmanGraph