Repository navigation
Use random speeds for random graphs to restore behavior before #2202 - #2212
Conversation
|
Btw do you label all PRs (issues?) until 3.0 as 'milestone 3.0'? |
Oh, no. Sorry for breaking this :) and thanks for fixing this!
Are you sure? Previously e.g. in DirectedBidirectionalDijkstraTest.java we used randomSpeedEnc!=null:
Yes |
Argh, this was a typo. Yes in "we accidentally disabled the random speed generation by passing speed=60d in places where we previously passed randomSpeedEnc!=null (which meant that random speeds should be enabled)" |
Also those that got opened some time ago but were fixed/closed for 3.0, like #1972? |
Ah, ups. Then I indeed misread the code and did it not accidentally.
Yes, I tag every thing that will be added or fixed in 3.0. So that we can easily search what improved or changed for this version. |
In #2202 we 'broke'
GHUtility#buildRandomGraphbecauseif
speed!=nullthe calls torandom.nextDoubleforfwd/bwdSpeedwere skipped (so we e.g. got different distances for the same seed), even though previously these calls were executed even forrandomSpeedEnc!=null.we accidentally disabled the random speed generation by passing
speed=60din places where we previously passedrandomSpeedEnc=null(which meant that random speeds should be enabled). Where we previously passedrandomSpeedEnc!=nullwe now need to passspeed=nulland where we previously passedrandomSpeedEnc=nullwe now need to passspeed=60(at least for car).Also c.f. this comment: #2202 (comment)