Measuring Distance and Connectivity