-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generalize weight used in dijkstra algorithm #174
base: main
Are you sure you want to change the base?
Conversation
caf57ea
to
f37d1ea
Compare
@@ -0,0 +1,18 @@ | |||
|
|||
#ifndef dijkstra_weights_hpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we start using #pragma once
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should do a PR where we convert all of them
@@ -778,10 +794,10 @@ namespace dsm { | |||
if (visitedNodes.find(neighbour.first) != visitedNodes.end()) { | |||
continue; | |||
} | |||
double streetLength = (*(this->street(source, neighbour.first)))->length(); | |||
double streetWeight = getStreetWeight(this, source, neighbour.first); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is double
type a fair assumption?
We could make it more general... but effectively sounds like more effort than utility.
Please @sbaldu remember to update the project version |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #174 +/- ##
=======================================
Coverage 94.47% 94.48%
=======================================
Files 17 18 +1
Lines 2897 2900 +3
Branches 281 281
=======================================
+ Hits 2737 2740 +3
Misses 160 160
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
No description provided.