(self)
return result
For each vertex in the graph, returns the maximum cohesion score
        among all the groups that contain the vertex.
For each vertex in the graph, returns the maximum cohesion score
        among all the groups that contain the vertex.
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
        among all the groups that contain the vertex."""
        result = [0] * self._graph.vcount()
        for cohesion, cluster in zip(self._cohesion, self._clusters):
            for idx in cluster:
                result[idx] = max(result[idx], cohesion)
        return result
def max_cohesions ( self ) : result = [ 0 ] * self . _graph . vcount ( ) for cohesion , cluster in zip ( self . _cohesion , self . _clusters ) : for idx in cluster : result [ idx ] = max ( result [ idx ] , cohesion ) return result