<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def replace(self, node, properties=None):
 """ Disconnect all existing nodes and connect the supplied node :param node: :param properties: for the new relationship :type: dict :return: """

        self.disconnect_all()
        self.connect(node, properties)