'Set the `selected` state.
.. note:: The item does not have `QGraphicsItem.ItemIsSelectable` flag.
This property is instead controlled by the parent NodeItem.'

def setSelected(self, selected):

    self.__isSelected = selected
    self.__updateBrush()
