Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

sbaldu
Copy link
Collaborator

@sbaldu sbaldu commented May 2, 2024

No description provided.

@sbaldu sbaldu force-pushed the feature_general_dijkstra branch from caf57ea to f37d1ea Compare May 2, 2024 10:00
@@ -0,0 +1,18 @@

#ifndef dijkstra_weights_hpp
Copy link
Collaborator

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?

Copy link
Collaborator Author

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);
Copy link
Collaborator

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.

@Grufoony
Copy link
Collaborator

Grufoony commented May 2, 2024

Please @sbaldu remember to update the project version

@sbaldu sbaldu requested a review from Grufoony May 10, 2024 17:16
Copy link

codecov bot commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.48%. Comparing base (93efdf4) to head (b799023).

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           
Flag Coverage Δ
unittests 94.48% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants