#NEWLINE# def _nodes_cross_edges( G , H ) : #NEWLINE# #INDENT# if H . is_multigraph ( ) : #NEWLINE# #INDENT# for x in G : #NEWLINE# #INDENT# for ( u , v , k , d ) in H . edges_iter ( data = True , keys = True ) : #NEWLINE# #INDENT# ( yield ( ( x , u ) , ( x , v ) , k , d ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# for x in G : #NEWLINE# #INDENT# for ( u , v , d ) in H . edges_iter ( data = True ) : #NEWLINE# #INDENT# if G . is_multigraph ( ) : #NEWLINE# #INDENT# ( yield ( ( x , u ) , ( x , v ) , None , d ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( yield ( ( x , u ) , ( x , v ) , d ) )