def max_cohesion(self, idx):
    'Finds the maximum cohesion score among all the groups that contain\n        the given vertex.'
    result = 0
    for (cohesion, cluster) in izip(self._cohesion, self._clusters):
        if (idx in cluster):
            result = max(result, cohesion)
    return result
Finds the maximum cohesion score among all the groups that contain
the given vertex.
def max_cohesion(self, idx):
    'Finds the maximum cohesion score among all the groups that contain\n        the given vertex.'
    result = 0
    for (cohesion, cluster) in izip(self._cohesion, self._clusters):
        if (idx in cluster):
            result = max(result, cohesion)
    return result