def METHOD_NAME(self, target):
    """Method to set the target of the edge.
    Arguments:
        target -- string    the id of the target-node to set
    """
    if target == None:
        raise ValueError('Target of Edge can not be None')
    if isinstance(target, str):
        self._target = target
    else:
        try:
            stringTarget = str(target)
            self._target = stringTarget
        except Exception as exception:
            raise TypeError("Type of target in Edge needs to be a string (or string castable): " + str(exception))