(self, idx)
return [i for i, e in enumerate(self._membership) if e == idx]
Returns the members of the specified cluster.

        @param idx: the index of the cluster
        @return: the members of the specified cluster as a list
        @raise IndexError: if the index is out of bounds
Returns the members of the specified cluster.
Returns the members of the specified cluster .
def __getitem__(self, idx):
        """Returns the members of the specified cluster.

        @param idx: the index of the cluster
        @return: the members of the specified cluster as a list
        @raise IndexError: if the index is out of bounds"""
        if idx < 0 or idx >= self._len:
            raise IndexError("cluster index out of range")
        return [i for i, e in enumerate(self._membership) if e == idx]
def __getitem__ ( self , idx ) : if idx < 0 or idx >= self . _len : raise IndexError ( "cluster index out of range" ) return [ i for i , e in enumerate ( self . _membership ) if e == idx ]