The closed graph ball of radius centered at vertex iswhere is shortest-path distance. In an unweighted graph, distances count edges, so a noninteger radius gives the same set as its integer part. Vertices in other connected components have infinite distance and lie outside every finite-radius ball.
For the path , and is the whole vertex set. The sphere at radius one contains only ; a ball also contains its center and all smaller distances.
New to topics? Read the docs here!