@@ -213,7 +213,7 @@ function updateGraphMetadata!(dfg::AbstractDFG, pair::Pair{Symbol, String})
213213 return push! (dfg. graphMetadata, pair)
214214end
215215
216- function deleteAgentMetadata! (dfg:: AbstractDFG , key:: Symbol )
216+ function deleteAgentMetadata! (dfg:: AbstractDFG , key:: Symbol )
217217 pop! (dfg. agent. metadata, key)
218218 return 1
219219end
@@ -392,21 +392,21 @@ end
392392
393393"""
394394 $(SIGNATURES)
395- Update a complete VariableCompute in the DFG.
395+ Merge a Variable to the DFG. Overwrites the existing variable if it exists or adds it if it does not .
396396"""
397- function updateVariable ! (
397+ function mergeVariable ! (
398398 dfg:: G ,
399399 variable:: V ,
400400) where {G <: AbstractDFG , V <: AbstractDFGVariable }
401- return error (" updateVariable ! not implemented for $(typeof (dfg)) " )
401+ return error (" mergeVariable ! not implemented for $(typeof (dfg)) " )
402402end
403403
404404"""
405405 $(SIGNATURES)
406- Update a complete FactorCompute in the DFG.
406+ Merge a Factor to the DFG. Overwrites the existing factor if it exists or adds it if it does not .
407407"""
408- function updateFactor ! (dfg:: G , factor:: F ) where {G <: AbstractDFG , F <: AbstractDFGFactor }
409- return error (" updateFactor ! not implemented for $(typeof (dfg)) " )
408+ function mergeFactor ! (dfg:: G , factor:: F ) where {G <: AbstractDFG , F <: AbstractDFGFactor }
409+ return error (" mergeFactor ! not implemented for $(typeof (dfg)) " )
410410end
411411
412412"""
@@ -1097,7 +1097,7 @@ function copyGraph!(
10971097 if ! exists (destDFG, variable)
10981098 addVariable! (destDFG, variableCopy)
10991099 elseif overwriteDest
1100- updateVariable ! (destDFG, variableCopy)
1100+ mergeVariable ! (destDFG, variableCopy)
11011101 else
11021102 error (" Variable $(variable. label) already exists in destination graph!" )
11031103 end
@@ -1119,7 +1119,7 @@ function copyGraph!(
11191119 if ! exists (destDFG, factor)
11201120 addFactor! (destDFG, factorCopy)
11211121 elseif overwriteDest
1122- updateFactor ! (destDFG, factorCopy)
1122+ mergeFactor ! (destDFG, factorCopy)
11231123 else
11241124 error (" Factor $(factor. label) already exists in destination graph!" )
11251125 end
@@ -1458,7 +1458,7 @@ function mergeVariableData!(dfg::AbstractDFG, sourceVariable::AbstractDFGVariabl
14581458
14591459 # update if its not a InMemoryDFGTypes, otherwise it was a reference
14601460 # if satelite nodes are used it can be updated separately
1461- # !(isa(dfg, InMemoryDFGTypes)) && updateVariable !(dfg, var)
1461+ # !(isa(dfg, InMemoryDFGTypes)) && mergeVariable !(dfg, var)
14621462
14631463 return var
14641464end
0 commit comments