Suppose is a graph in which every vertex has a non-negative real number as its weight. The -distance sum of is The -median of is the set of all vertices with minimum -distance sum . This paper gives linear-time algorithms for computing the -medians of interval graphs and block graphs.