'Redirects arcs to any of the nodes in the originals list
to the redirect node address.'

def redirect_arcs(self, originals, redirect):

    for node in self.nodes.values():
        new_deps = []
        for dep in node[u'deps']:
            if (dep in originals):
                new_deps.append(redirect)
            else:
                new_deps.append(dep)
        node[u'deps'] = new_deps
