#NEWLINE# def test_nbunch_graph( self ) : #NEWLINE# #INDENT# G = self . G ( ) #NEWLINE# G . add_nodes_from ( [ 'A' , 'B' , 'C' , 'D' , 'E' , 'F' , 'G' , 'H' ] ) #NEWLINE# nbunch = self . K3 #NEWLINE# G . add_nodes_from ( nbunch ) #NEWLINE# assert_true ( sorted ( G . nodes ( ) , key = str ) , [ 1 , 2 , 3 , 'A' , 'B' , 'C' , 'D' , 'E' , 'F' , 'G' , 'H' ] )