VertexEccentricity
VertexEccentricity[g,s] gives the length of the longest shortest path from the source s to every other vertex in the graph g.
VertexEccentricity[{v->w,…},…] uses rules v->w to specify the graph g.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.