#NEWLINE# def redirect_arcs( self , originals , redirect ) : #NEWLINE# #INDENT# '\n        Redirects arcs to any of the nodes in the originals list\n        to the redirect node address.\n        ' #NEWLINE# for node in self . nodes . values ( ) : #NEWLINE# #INDENT# new_deps = [ ] #NEWLINE# for dep in node [ 'deps' ] : #NEWLINE# #INDENT# if ( dep in originals ) : #NEWLINE# #INDENT# new_deps . append ( redirect ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# new_deps . append ( dep ) #NEWLINE# #UNINDENT# #UNINDENT# node [ 'deps' ] = new_deps