The pseudo-diameter of the graph of a square is 2:
A plot showing the graph with the two vertices of the pseudo-diameter highlighted in red:
Here is a matrix representation of the graph of a torus:
The pseudo-diameter of this torus is 7:
This finds the graph geodesic between vertices 1 and 26, highlighting the graph geodesic in red: