The center of a graph is the set of vertices with minimum graph eccentricity. For a finite connected graph , putHere is shortest-path distance and is the graph radius. The center solves a facility-placement problem in which the cost is the distance to the farthest vertex.
In a five-vertex path graph, eccentricities are , so only the middle vertex is central. In a four-vertex path, the two middle vertices both have eccentricity two. The center of a tree is always a single vertex or a pair of adjacent vertices: repeatedly deleting all leaves exposes its middle. For a general graph the center need not have this form; every vertex of a cycle graph is central.
New to topics? Read the docs here!