Adding a method to calculate the mean vertex connectivity