#NEWLINE# def test_brandes_erlebach( ) : #NEWLINE# #INDENT# G = nx . Graph ( ) #NEWLINE# G . add_edges_from ( [ ( 1 , 2 ) , ( 1 , 3 ) , ( 1 , 4 ) , ( 1 , 5 ) , ( 2 , 3 ) , ( 2 , 6 ) , ( 3 , 4 ) , ( 3 , 6 ) , ( 4 , 6 ) , ( 4 , 7 ) , ( 5 , 7 ) , ( 6 , 8 ) , ( 6 , 9 ) , ( 7 , 8 ) , ( 7 , 10 ) , ( 8 , 11 ) , ( 9 , 10 ) , ( 9 , 11 ) , ( 10 , 11 ) ] ) #NEWLINE# for flow_func in flow_funcs : #NEWLINE# #INDENT# kwargs = dict ( flow_func = flow_func ) #NEWLINE# assert_equal ( 3 , local_edge_connectivity ( G , 1 , 11 , ** kwargs ) , msg = msg . format ( flow_func . __name__ ) ) #NEWLINE# assert_equal ( 3 , nx . edge_connectivity ( G , 1 , 11 , ** kwargs ) , msg = msg . format ( flow_func . __name__ ) ) #NEWLINE# assert_equal ( 2 , local_node_connectivity ( G , 1 , 11 , ** kwargs ) , msg = msg . format ( flow_func . __name__ ) ) #NEWLINE# assert_equal ( 2 , nx . node_connectivity ( G , 1 , 11 , ** kwargs ) , msg = msg . format ( flow_func . __name__ ) ) #NEWLINE# assert_equal ( 2 , nx . edge_connectivity ( G , ** kwargs ) , msg = msg . format ( flow_func . __name__ ) ) #NEWLINE# assert_equal ( 2 , nx . node_connectivity ( G , ** kwargs ) , msg = msg . format ( flow_func . __name__ ) )