File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,5 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
13
13
[compat ]
14
14
Graphs = " 1.4"
15
15
Rasters = " 0.1"
16
+ SimpleWeightedGraphs = " 1.2"
16
17
julia = " 1.6"
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ weights (the values in `weight_raster`) are in units of electrical resistance.
83
83
If `false`, the weight between two nodes with resistances R1 and R2 is
84
84
calculated by converting resistance to conductances, taking the average, then
85
85
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
87
87
the default settings in Circuitscape. Defaults to `true`, in which case the
88
88
simple average (adjusted for distance in the case of diagonal
89
89
neighbors) of the weights in `weight_raster` is used.
@@ -115,7 +115,6 @@ function weightedrastergraph(
115
115
end
116
116
117
117
return sg
118
-
119
118
end
120
119
121
120
"""
You can’t perform that action at this time.
0 commit comments