def cohesion(self, idx):
    'Returns the cohesion of the group with the given index.'
    return self._cohesion[idx]
Returns the cohesion of the group with the given index.
def cohesion(self, idx):
    
    return self._cohesion[idx]