code: def outputs_of(self, idx, create=False):
          
          if create and not idx in self.edges:
              self.edges[idx] = set()
          return self.edges[idx]
docs: Get a set of the outputs for a given node index.