code: def replace(self, node, properties=None):
          
          self.disconnect_all()
          self.connect(node, properties)
docs: Disconnect all existing nodes and connect the supplied node
  
          :param node:
          :param properties: for the new relationship
          :type: dict
          :return: