code: def addConnector(self, wire1, wire2):
          
          if wire1 == wire2:
              return
          
          if wire1 > wire2:
              wire1, wire2 = wire2, wire1
          
          try:
              last_level = self[-1]
          except IndexError:
              # Empty network, create new level and connector
              self.append([(wire1, wire2)])
              return
          
          for wires in last_level:
              if wires[1] >= wire1 and wires[0] <= wire2:
                  self.append([(wire1, wire2)])
                  return
          
          last_level.append((wire1, wire2))
docs: Add a connector between wire1 and wire2 in the network.