#NEWLINE# def test_dangling_numpy_pagerank( self ) : #NEWLINE# #INDENT# pr = networkx . pagerank_numpy ( self . G , dangling = self . dangling_edges ) #NEWLINE# for n in self . G : #NEWLINE# #INDENT# assert_almost_equal ( pr [ n ] , self . G . dangling_pagerank [ n ] , places = 4 )