Depth Functions, Multidimensional Medians And Tests Of Uniformity On Proximity Graphs