#NEWLINE# def _give_away_edges( self ) : #NEWLINE# #INDENT# 'Give edges away to neighbors or keep them if no neighbor.' #NEWLINE# for ( n_index , edge ) in tuple ( self . _owned_edges . items ( ) ) : #NEWLINE# #INDENT# neighbor = self . _grid . get ( n_index ) #NEWLINE# if neighbor : #NEWLINE# #INDENT# neighbor . _owned_edges [ self . index ( ) ] = edge #NEWLINE# del self . _owned_edges [ n_index ]