#NEWLINE# def test_reverse( self ) : #NEWLINE# #INDENT# G = nx . complete_graph ( 10 ) #NEWLINE# H = G . to_directed ( ) #NEWLINE# HR = H . reverse ( ) #NEWLINE# assert_true ( nx . is_isomorphic ( H , HR ) ) #NEWLINE# assert_equal ( sorted ( H . edges ( ) ) , sorted ( HR . edges ( ) ) )