Skip to content

Commit 5972b17

Browse files
author
Vincent Landau
committed
add compat for SimpleWeightedGraphs, typo fix/linting
1 parent 525dd60 commit 5972b17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1313
[compat]
1414
Graphs = "1.4"
1515
Rasters = "0.1"
16+
SimpleWeightedGraphs = "1.2"
1617
julia = "1.6"

src/rastergraphs.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ weights (the values in `weight_raster`) are in units of electrical resistance.
8383
If `false`, the weight between two nodes with resistances R1 and R2 is
8484
calculated by converting resistance to conductances, taking the average, then
8585
taking the inverse of the result to convert back to resistance:
86-
`1 / ((1/R1 + 1/R2) / 2)`. `connect_using_avg_weights = false` correspondes to
86+
`1 / ((1/R1 + 1/R2) / 2)`. `connect_using_avg_weights = false` corresponds to
8787
the default settings in Circuitscape. Defaults to `true`, in which case the
8888
simple average (adjusted for distance in the case of diagonal
8989
neighbors) of the weights in `weight_raster` is used.
@@ -115,7 +115,6 @@ function weightedrastergraph(
115115
end
116116

117117
return sg
118-
119118
end
120119

121120
"""

0 commit comments

Comments
 (0)