#NEWLINE# def test_selfloops( self ) : #NEWLINE# #INDENT# self . G . add_edge ( 1 , 1 ) #NEWLINE# cl = list ( nx . find_cliques ( self . G ) ) #NEWLINE# rcl = nx . find_cliques_recursive ( self . G ) #NEWLINE# assert_equal ( sorted ( map ( sorted , cl ) ) , sorted ( map ( sorted , rcl ) ) ) #NEWLINE# assert_equal ( cl , [ [ 2 , 6 , 1 , 3 ] , [ 2 , 6 , 4 ] , [ 5 , 4 , 7 ] , [ 8 , 9 ] , [ 10 , 11 ] ] )