@@ -503,19 +503,28 @@ def testEigenvectorCentrality(self):
503
503
504
504
def testAuthorityScore (self ):
505
505
g = Graph .Tree (15 , 2 , TREE_IN )
506
- asc = g .authority_score ()
506
+
507
+ with warnings .catch_warnings ():
508
+ warnings .simplefilter ("ignore" )
509
+ asc = g .authority_score ()
507
510
self .assertAlmostEqual (max (asc ), 1.0 , places = 3 )
508
511
509
512
# Smoke testing
510
- g .authority_score (scale = False , return_eigenvalue = True )
513
+ with warnings .catch_warnings ():
514
+ warnings .simplefilter ("ignore" )
515
+ g .authority_score (scale = False , return_eigenvalue = True )
511
516
512
517
def testHubScore (self ):
513
518
g = Graph .Tree (15 , 2 , TREE_IN )
514
- hsc = g .hub_score ()
519
+ with warnings .catch_warnings ():
520
+ warnings .simplefilter ("ignore" )
521
+ hsc = g .hub_score ()
515
522
self .assertAlmostEqual (max (hsc ), 1.0 , places = 3 )
516
523
517
524
# Smoke testing
518
- g .hub_score (scale = False , return_eigenvalue = True )
525
+ with warnings .catch_warnings ():
526
+ warnings .simplefilter ("ignore" )
527
+ g .hub_score (scale = False , return_eigenvalue = True )
519
528
520
529
def testCoreness (self ):
521
530
g = Graph .Full (4 ) + Graph (4 ) + [(0 , 4 ), (1 , 5 ), (2 , 6 ), (3 , 7 )]
0 commit comments