code: def _init_go2obj(self, **kws):
          
          if 'goids' in kws and 'obodag' in kws:
              self.godag.go_sources = kws['goids']
              obo = kws['obodag']
              for goid in self.godag.go_sources:
                  self.godag.go2obj[goid] = obo[goid]
          elif 'goid2goobj' in kws:
              goid2goobj = kws['goid2goobj']
              self.godag.go_sources = goid2goobj.keys()
              for goid, goobj in goid2goobj.items():
                  self.godag.go2obj[goid] = goobj
          elif 'goea_results' in kws:
              goea_results = kws['goea_results']
              self.godag.go_sources = [rec.GO for rec in goea_results]
              self.godag.go2obj = {rec.GO:rec.goterm for rec in goea_results}
docs: Initialize go2obj in small dag for source gos.