Fix for when initial graph size is 1