def get_usrgos_w_parents(self, hdrgos, usrgos_all=None):
        """Get usrgos w/parents in hdrgos, even if usrgos did not get grouped under hdrgos."""
        usrgos = set()
        _go2parents = self.gosubdag.rcntobj.go2parents
        if usrgos_all is None:
            usrgos_all = self.usrgos
        for usrgo in usrgos_all:
            all_usrgo_parents = _go2parents.get(usrgo)
            sel_usrgo_parents = all_usrgo_parents.intersection(hdrgos)
            if sel_usrgo_parents:
                usrgos.add(usrgo)
        return usrgos
def get_usrgos_w_parents ( self , hdrgos , usrgos_all = None ) : usrgos = set ( ) _go2parents = self . gosubdag . rcntobj . go2parents if usrgos_all is None : usrgos_all = self . usrgos for usrgo in usrgos_all : all_usrgo_parents = _go2parents . get ( usrgo ) sel_usrgo_parents = all_usrgo_parents . intersection ( hdrgos ) if sel_usrgo_parents : usrgos . add ( usrgo ) return usrgos
Get usrgos w/parents in hdrgos, even if usrgos did not get grouped under hdrgos.