File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ Return boolean whether a factor `label` is present in `<:AbstractDFG`.
449
449
"""
450
450
function hasFactor (dfg:: G , label:: Symbol ):: Bool where {G <: AbstractDFG }
451
451
@warn " hasFactor() deprecated, please use exists()"
452
- return haskey (dfg. labelDict , label)
452
+ return exists (dfg, label)
453
453
end
454
454
455
455
"""
@@ -459,7 +459,7 @@ Return `::Bool` on whether `dfg` contains the variable `lbl::Symbol`.
459
459
"""
460
460
function hasVariable (dfg:: G , label:: Symbol ):: Bool where {G <: AbstractDFG }
461
461
@warn " hasVariable() deprecated, please use exists()"
462
- return haskey (dfg. labelDict , label) # haskey(vertices(dfg.g), label)
462
+ return exists (dfg, label) # haskey(vertices(dfg.g), label)
463
463
end
464
464
465
465
You can’t perform that action at this time.
0 commit comments