Permalink
Browse files

BUG: fix intermittent failures in sparse.csgraph.shortest_path tests.

Closes ticket 1701.
  • Loading branch information...
1 parent 3d206ff commit 92fa790537f2cffc64a252c118d28b56b7472083 @rgommers rgommers committed Jul 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 scipy/sparse/csgraph/_shortest_path.pyx
@@ -880,7 +880,7 @@ def johnson(csgraph, directed=True, indices=None,
#------------------------------
# initialize distance array
- dist_array = np.empty(N, dtype=DTYPE)
+ dist_array = np.zeros(N, dtype=DTYPE)
csr_data = csgraph.data.copy()

0 comments on commit 92fa790

Please sign in to comment.