The periphery of a graph is the subgraph of induced by vertices that have graph eccentricities equal to the graph diameter.
The periphery of a connected graph may be computed in the Wolfram Language with the command GraphPeriphery[g]. However, this function returns for disconnected graphs.