def METHOD_NAME(self, node, parent, deprel, edeprel):
    '''
    Modifies the incoming relation of a node both in the basic tree and in
    the enhanced graph. If the node does not yet depend in the enhanced
    graph on the current basic parent, the new relation will be added without
    removing any old one. If the node already depends multiple times on the
    current basic parent in the enhanced graph, all such enhanced relations
    will be removed before adding the new one.
    '''
    old_parent = node.parent
    node.parent = parent
    node.deprel = deprel
    node.deps = [x for x in node.deps if x['parent'] != old_parent]
    new_edep = {}
    new_edep['parent'] = parent
    new_edep['deprel'] = edeprel
    node.deps.append(new_edep)