docs: def nodes(self, value):
          """Remap indices to nodes whenever nodes are changed, e.g. in the
          `macro` module.
          """
          # pylint: disable=attribute-defined-outside-init
          self._nodes = value
          self._index2node = {node.index: node for node in self._nodes}