Consider the m by n grid graph: n vertices in each of m rows,
and m vertices in each of n columns arranged as a grid, and edges
between neighboring vertices on rows and columns (excluding the
wrap-around edges in the toric mesh). There are m n vertices in
total.
a)What is the diameter of this graph?
b) From the top left vertex to the bottom right vertex, how many
shortest paths are there? Please explain.