Skip to content

Commit

Permalink
BUG: fix validation in csgraph.shortest_path
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevdp committed Mar 18, 2014
1 parent 4c27cd2 commit 65aa324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scipy/sparse/csgraph/_shortest_path.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def shortest_path(csgraph, method='auto',
directed == False. i.e., if csgraph[i,j] and csgraph[j,i] are non-equal
edges, method='D' may yield an incorrect result.
"""
validate_graph(csgraph, directed, DTYPE)
csgraph = validate_graph(csgraph, directed, DTYPE)

if method == 'auto':
# guess fastest method based on number of nodes and edges
Expand Down

0 comments on commit 65aa324

Please sign in to comment.