You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# function addFactor!(dfg::GraphsDFG{<:AbstractParams, V, F}, variables::Vector{<:V}, factor::F)::F where {V <: AbstractDFGVariable, F <: AbstractDFGFactor}
56
-
#
57
-
# #TODO should this be an error
58
-
# if haskey(dfg.g.factors, factor.label)
59
-
# error("Factor '$(factor.label)' already exists in the factor graph")
60
-
# end
61
-
# # for v in variables
62
-
# # if !(v.label in keys(dfg.g.metaindex[:label]))
63
-
# # error("Variable '$(v.label)' not found in graph when creating Factor '$(factor.label)'")
# function addFactor!(dfg::GraphsDFG{<:AbstractParams, <:AbstractDFGVariable, F}, variableLabels::Vector{Symbol}, factor::F)::F where F <: AbstractDFGFactor
78
-
# #TODO should this be an error
79
-
# if haskey(dfg.g.factors, factor.label)
80
-
# error("Factor '$(factor.label)' already exists in the factor graph")
0 commit comments