#NEWLINE# def test_biconnected_components_cycle( ) : #NEWLINE# #INDENT# G = nx . cycle_graph ( 3 ) #NEWLINE# nx . add_cycle ( answer , [ 1 , 3 , 4 ] ) #NEWLINE# answer = [ { 0 , 1 , 2 } , { 1 , 3 , 4 } ] #NEWLINE# assert_components_equal ( list ( nx . biconnected_components ( G ) ) , answer )