-
Notifications
You must be signed in to change notification settings - Fork 13
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
Allow different weight matrices to be passed in for path weight calculations #40
Conversation
Codecov Report
@@ Coverage Diff @@
## master #40 +/- ##
==========================================
- Coverage 67.10% 66.54% -0.56%
==========================================
Files 11 11
Lines 836 843 +7
==========================================
Hits 561 561
- Misses 275 282 +7
Continue to review full report at Codecov.
|
1ea0df8
to
48ada27
Compare
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.
LGTM
@@ -119,12 +119,13 @@ Extracts edge weights from a path using `g.weights`. | |||
# Arguments | |||
- `g::OSMGraph`: Graph container. | |||
- `path::Vector{T}`: Array of OpenStreetMap node ids. | |||
- `weights=g.weights`: weights matrix. | |||
|
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.
put comment on kwarg in doc string
src/shortest_path.jl
Outdated
@@ -135,14 +136,15 @@ Extract total edge weight along a path. | |||
# Arguments | |||
- `g::OSMGraph`: Graph container. | |||
- `path::Vector{T}`: Array of OpenStreetMap node ids. | |||
- `weights=g.weights`: weights matrix. |
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.
kwarg description
48ada27
to
5804e5f
Compare
5804e5f
to
bdf0159
Compare
Similarly to the update to
shortest_path
, allow users to pass their own weight matrices intototal_path_weight
andweights_from_path