Skip to content

Commit 48088e0

Browse files
committed
findShortestPathDijkstra exists from to
1 parent 25b2bcb commit 48088e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LightDFG/services/LightDFG.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,11 @@ function findShortestPathDijkstra( dfg::LightDFG,
438438
dfg
439439
end
440440

441-
# LightDFG internally uses Integers
442-
if !haskey(dfg_.g.labels, from) || !haskey(dfg_.g.labels, from)
441+
if !exists(dfg_, from) || !exists(dfg_, to)
443442
# assume filters excluded either `to` or `from` and hence no shortest path
444443
return Symbol[]
445444
end
445+
# LightDFG internally uses Integers
446446
frI = dfg_.g.labels[from]
447447
toI = dfg_.g.labels[to]
448448

0 commit comments

Comments
 (0)