#NEWLINE# def test_degree_mixing_dict_undirected_normalized( self ) : #NEWLINE# #INDENT# d = nx . degree_mixing_dict ( self . P4 , normalized = True ) #NEWLINE# d_result = { #NEWLINE# #INDENT# 1 : { #NEWLINE# #INDENT# 2 : ( 1.0 / 3 ) , #NEWLINE# #UNINDENT# } , #NEWLINE# 2 : { #NEWLINE# #INDENT# 1 : ( 1.0 / 3 ) , #NEWLINE# 2 : ( 1.0 / 3 ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# assert_equal ( d , self )