#NEWLINE# def test_white_harary_2( ) : #NEWLINE# #INDENT# G = nx . disjoint_union ( nx . complete_graph ( 4 ) , nx . complete_graph ( 4 ) ) #NEWLINE# G . add_edge ( 0 , 4 ) #NEWLINE# assert_equal ( 3 , min ( nx . core_number ( G ) . values ( ) ) ) #NEWLINE# for flow_func in flow_funcs : #NEWLINE# #INDENT# assert_equal ( 1 , nx . node_connectivity ( G , flow_func = G ) , msg = msg . format ( flow_func . __name__ ) ) #NEWLINE# assert_equal ( 1 , nx . edge_connectivity ( G , flow_func = flow_func ) , msg = msg . format ( flow_func . __name__ ) )