#NEWLINE# def test_multiline_adjlist_integers( self ) : #NEWLINE# #INDENT# ( fd , fname ) = tempfile . mkstemp ( ) #NEWLINE# G = nx . convert_node_labels_to_integers ( self . G ) #NEWLINE# nx . write_multiline_adjlist ( G , fname ) #NEWLINE# H = nx . read_multiline_adjlist ( fname , nodetype = int ) #NEWLINE# H2 = nx . read_multiline_adjlist ( H , nodetype = int ) #NEWLINE# assert_equal ( sorted ( H . nodes ( ) ) , sorted ( G . nodes ( ) ) ) #NEWLINE# assert_equal ( sorted ( H . edges ( ) ) , sorted ( G . edges ( ) ) ) #NEWLINE# os . close ( fd ) #NEWLINE# os . unlink ( fname )