Let $\rm{ad}(G)$ be the average distance of a connected graph $G.$
One way to compute $\rm{ad}(G)$ is by summing up the elements of $D(G),$ the distance matrix of $G$ and scaling the sum appropriately.
If the output graph is a tree then it is known that the average distance can be computed in linear time (See B.Mohar, T.Pisanski - How to compute the Wiener index of a graph). There appears to be fast algorithms for graphs with bounded tree width as well.
An interesting question therefore is, whether it helps to know $D(G).$ In other words
Is it possible to compute $\rm{ad}(G)$ in sub-quadratic time?
What I am interested in knowing is if there is a theoretical lower bound as to why this would not be possible.