#NEWLINE# def test_calculate_degree_matrix_2( self ) : #NEWLINE# #INDENT# '\n        Test provided by Nancy-Sarah Yacovzada.\n        ' #NEWLINE# data = [ 0.0 , 1.0 , 1.0 , 1.0 , 1.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 ] #NEWLINE# W = CondensedMatrix ( W ) #NEWLINE# self . assertListEqual ( [ 3.0 , 1.0 , 2.0 , 1.0 , 1.0 ] , SpectralTools . calculate_degree_matrix ( W ) )