#NEWLINE# def test_is_weakly_connected( self ) : #NEWLINE# #INDENT# wcc = nx . is_weakly_connected #NEWLINE# cc = nx . is_connected #NEWLINE# for ( G , C ) in cc . gc : #NEWLINE# #INDENT# U = G . to_undirected ( ) #NEWLINE# assert_equal ( wcc ( G ) , cc ( U ) )