Evolving networks with distance preferences.