'Set the source/sink nodes (:class:`SchemeNode` instances) between
which to edit the links.
.. note:: Call this before :func:`setLinks`.'

def setNodes(self, source, sink):

    self.clear()
    self.source = source
    self.sink = sink
    self.__updateState()
