get_eccentricity function

Get node eccentricities