code: def get_c2ps(self):
          
          c2ps = defaultdict(set)
          for goid_child, goid_parent in self.edges:
              c2ps[goid_child].add(goid_parent)
          return c2ps
docs: Set child2parents dict for all parents used in this set of edges.