(self, idx)
return result
Finds the maximum cohesion score among all the groups that contain
        the given vertex.
Finds the maximum cohesion score among all the groups that contain
        the given vertex.
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
        the given vertex."""
        result = 0
        for cohesion, cluster in zip(self._cohesion, self._clusters):
            if idx in cluster:
                result = max(result, cohesion)
        return result
def max_cohesion ( self , idx ) : result = 0 for cohesion , cluster in zip ( self . _cohesion , self . _clusters ) : if idx in cluster : result = max ( result , cohesion ) return result