#NEWLINE# def test_directed_edge_connectivity( ) : #NEWLINE# #INDENT# G = nx . cycle_graph ( 10 , create_using = nx . DiGraph ( ) ) #NEWLINE# D = nx . cycle_graph ( 10 ) . to_directed ( ) #NEWLINE# for flow_func in flow_funcs : #NEWLINE# #INDENT# assert_equal ( 1 , nx . edge_connectivity ( G , flow_func = flow_func ) , msg = msg . format ( flow_func . __name__ ) ) #NEWLINE# assert_equal ( 1 , local_edge_connectivity ( G , 1 , 4 , flow_func = flow_func ) , msg = msg . format ( flow_func . __name__ ) ) #NEWLINE# assert_equal ( 1 , nx . edge_connectivity ( G , 1 , 4 , flow_func = flow_func ) , msg = msg . format ( flow_func . __name__ ) ) #NEWLINE# assert_equal ( 2 , nx . edge_connectivity ( D , flow_func = flow_func ) , msg = msg . format ( flow_func . __name__ ) ) #NEWLINE# assert_equal ( 2 , local_edge_connectivity ( D , 1 , 4 , flow_func = flow_func ) , msg = msg . format ( flow_func . __name__ ) ) #NEWLINE# assert_equal ( 2 , nx . edge_connectivity ( D , 1 , 4 , flow_func = flow_func ) , msg = msg . format ( flow_func . __name__ ) )