#NEWLINE# def _fanout_add_edge( self , edge , node , cloned_node ) : #NEWLINE# #INDENT# 'Re-add edges to a cloned node.' #NEWLINE# cloned_tool = cloned_node . _tool #NEWLINE# if ( edge . _source == self ) : #NEWLINE# #INDENT# new_edge = self . add_edge ( cloned_node , edge . _target ) #NEWLINE# new_edge . _group = edge . _group #NEWLINE# for link in edge . _links : #NEWLINE# #INDENT# link = new_edge . add_link ( cloned_tool . options [ link [ 0 ] . name ] , link [ 1 ] ) #NEWLINE# link [ 1 ] . _value . append ( cloned_tool . options [ link [ 0 ] . name ] ) #NEWLINE# log . debug ( 'Fanout | add link to edge: %s [%s]' , new_edge , link ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( edge . _target == node ) : #NEWLINE# #INDENT# new_edge = self . add_edge ( edge . _source , cloned_node ) #NEWLINE# new_edge . _group = edge . _group #NEWLINE# for link in edge . _links : #NEWLINE# #INDENT# link = new_edge . add_link ( link [ 0 ] , cloned_tool . options [ link [ 1 ] . name ] ) #NEWLINE# log . debug ( 'Fanout | add link to edge: %s [%s]' , link , new_edge )