<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_node(self, c):
 """ Add a node without connections in this graph and returns its index. """

        idx = len(self.nodes)
        self.edges[idx] = set()
        self.nodes.append(c)
        return idx