Ant colony optimization for finding medians of weighted graphs