(self, item)
return res
Return all selected subclusters under item.
Return all selected subclusters under item.
Return all selected subclusters under item .
def _selected_sub_items(self, item):
        """Return all selected subclusters under item."""
        def branches(item):
            return [self._items[ch] for ch in item.node.branches]

        res = []
        for item in list(preorder(item, branches))[1:]:
            if item in self._selection:
                res.append(item)
        return res
def _selected_sub_items ( self , item ) : def branches ( item ) : return [ self . _items [ ch ] for ch in item . node . branches ] res = [ ] for item in list ( preorder ( item , branches ) ) [ 1 : ] : if item in self . _selection : res . append ( item ) return res