code: def add_node(self, c):
          
          idx = len(self.nodes)
          self.edges[idx] = set()
          self.nodes.append(c)
          return idx
docs: Add a node without connections in this graph and returns its index.