Skip to content

Commit 1ca400d

Browse files
authored
Update yen.jl (#254)
1 parent f899f43 commit 1ca400d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shortestpaths/yen.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function yen_k_shortest_paths(
5757
end
5858

5959
# Remove node of root path and calculate dist of it
60-
distrootpath = 0.0
60+
distrootpath = zero(T)
6161
for n in 1:(length(rootpath) - 1)
6262
u = rootpath[n]
6363
nei = copy(neighbors(gcopy, u))

0 commit comments

Comments
 (0)