<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def outputs_of(self, idx, create=False):
 """ Get a set of the outputs for a given node index. """

        if create and not idx in self.edges:
            self.edges[idx] = set()
        return self.edges[idx]