#NEWLINE# def test_average_connectivity_directed( ) : #NEWLINE# #INDENT# G = nx . DiGraph ( [ ( 1 , 3 ) , ( 1 , 4 ) , ( 1 , 5 ) ] ) #NEWLINE# for flow_func in flow_funcs : #NEWLINE# #INDENT# assert_equal ( nx . average_node_connectivity ( G ) , 0.25 , msg = msg . format ( flow_func . __name__ ) )