RuntimeWarning on csgraph.shortest_path when edge lengths are NaN #5144
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
scipy.sparse.csgraph
Milestone
The documentation for scipy.sparse.csgraph says that NaN entries will be treated as non-edges, the same as 0 or inf. But when using csgraph.shortest_path on a graph where some paths are impossible because of NaN edges, irrelevant warning messages are printed. These warning messages don't happen in the other cases.
Using numpy v1.9.2, scipy v0.16.0, python 2.7.10 in a clean virtualenv on os x 10.10.4.
The text was updated successfully, but these errors were encountered: