Given a connected graph $G$ with weighted edges (weights can be assumed as edge lengths and are non-negative). We need to identify the vertex such that the sum of the distances from other vertices to it is a minimum - to locate some facility on that node.
An $\theta$($n^3$) algorithm where $n$ is the number of vertices can be found by (a) running Floyd-Warshall algorithm and finding lengths of shortest paths between every pair of vertices with all pairs of path lengths written as a matrix in $\theta$($n^3$) and (b) finding that row of the matrix with least sum of elements.
Question: How much can the above $\theta$($n^3$) be improved?
Note: As has been pointed out in the comments below by Jukka Kohonen and Peter Taylor, all pairs shortest paths (APSP) problem has more efficient algorithms than F-W. So, there certainly are better methods than $\theta$($n^3$). It is also conceivable that there could be approaches to above question that do not go via APSP.
Further question: If we need to locate $k$ instances of the facility - that is, identify $k$ 'facility nodes' such that if all other nodes are distributed in $k$ buckets one for each facility node, the sum over all other nodes of the distance to its facility node is a minimum, what can be done (as an improvement to examining rows of the above mentioned path length matrix)?