Skip to content

Commit

Permalink
Merge pull request networkx#1158 from argriffing/more-seeds
Browse files Browse the repository at this point in the history
TST: katz eigenvector test seed
  • Loading branch information
chebee7i committed May 12, 2014
2 parents 3eb0369 + ff3ef72 commit fe493f1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ def setupClass(cls):
raise SkipTest('SciPy not available.')

def test_eigenvector_v_katz_random(self):
np.random.seed(1234)
G = networkx.gnp_random_graph(10,0.5)
l = float(max(eigvals(networkx.adjacency_matrix(G).todense())))
e = networkx.eigenvector_centrality_numpy(G)
Expand Down

0 comments on commit fe493f1

Please sign in to comment.