def METHOD_NAME(self):
    #find groups of objects by name
    #filter out distinct idS, and, idT
    allIdS = {idS for idS, idT, v in self.a.map}
    allIdT = {idT for idS, idT, v in self.a.map}
    SGroups = self.findStringGroups(list(allIdS), self.S)
    TGroups = self.findStringGroups(list(allIdT), self.T)
    return SGroups, TGroups
    #discard set smaller than one