#NEWLINE# def test_create_empty_copy( self ) : #NEWLINE# #INDENT# G = networkx . create_empty_copy ( self . G , with_nodes = False ) #NEWLINE# assert_equal ( G . nodes ( ) , [ ] ) #NEWLINE# assert_equal ( G . graph , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# assert_equal ( G . node , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# assert_equal ( G . edge , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# G = networkx . create_empty_copy ( self . G ) #NEWLINE# assert_equal ( G . nodes ( ) , self . G . nodes ( ) ) #NEWLINE# assert_equal ( G . graph , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# assert_equal ( G . node , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } . fromkeys ( self . G . nodes ( ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# assert_equal ( G . edge , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } . fromkeys ( self . G . nodes ( ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) )