I have a graph structure in a spatial domain (say a dense community like structure) and a query point. I want to devise efficient algorithms + Data Structures to calculate distance between this group as a whole and the query point.
A suitable distance function here could be averaging the distance of all points from the query point. An alternative function could be taking the maximum of all distances.
How should I go about this problem?