DistributedFactorGraphs.jl
DistributedFactorGraphs.jl copied to clipboard
FEATURE perhaps add a read-only flag
In case you have a few dfg objects around and want to prevent accidently overwriting values...
sfg = subGraphCopy(dfg, vars)
setReadOnly!(sfg, true)
addVariable!(sfg, ...)
# should produce an @ error printout and continue