Axiomatic Characterization of the Median and Antimedian Functions on Cocktail-Party Graphs and Complete Graphs