labels-methods function

Generate label vector from clustering result