Skip to content

Commit

Permalink
fixed bug with exception about speed==0
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Mar 8, 2018
1 parent 1cfef1c commit 74f3551
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -202,6 +202,9 @@ public void searchInternal(int from) {
}

double tmpWeight = weighting.calcWeight(iter, reverseFlow, currEdge.edge) + currEdge.weight;
if (Double.isInfinite(tmpWeight))
continue;

double tmpDistance = iter.getDistance() + currEdge.distance;
long tmpTime = weighting.calcMillis(iter, reverseFlow, currEdge.edge) + currEdge.time;
int tmpNode = iter.getAdjNode();
Expand Down

0 comments on commit 74f3551

Please sign in to comment.