diff options
| author | Alon Levy <alon@pobox.com> | 2015-05-18 20:14:45 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-05-18 20:14:45 +0300 |
| commit | abcaac9094b957d9fe98a9c8466f0b0fee3fa17c (patch) | |
| tree | d2018451e1612b9016cb3ac70a63426165ca21d7 /src | |
| parent | 89e4f47cb59fdccafe37c13b909eca6d30a54093 (diff) | |
client/model/graph: shortests_paths: bug fix
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/model/graph.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/model/graph.js b/src/client/model/graph.js index f444c94b..4b8117f2 100644 --- a/src/client/model/graph.js +++ b/src/client/model/graph.js @@ -353,7 +353,7 @@ function Graph(spec) { } pairs_symmetric(ids, function (one, two) { - if (bfs[one][two].distance === Infinity) { + if (bfs[one][two] !== undefined && bfs[one][two].distance === Infinity) { return; } append_paths(bfs[one], two); |
