def max_cohesions(self):
    'For each vertex in the graph, returns the maximum cohesion score\n        among all the groups that contain the vertex.'
    result = ([0] * self._graph.vcount())
    for (cohesion, cluster) in izip(self._cohesion, self._clusters):
        for idx in cluster:
            result[idx] = max(result[idx], cohesion)
    return result
For each vertex in the graph, returns the maximum cohesion score
among all the groups that contain the vertex.
def max_cohesions(self):
    'For each vertex in the graph, returns the maximum cohesion score\n        among all the groups that contain the vertex.'
    result = ([0] * self._graph.vcount())
    for (cohesion, cluster) in izip(self._cohesion, self._clusters):
        for idx in cluster:
            result[idx] = max(result[idx], cohesion)
    return result