DistributedFactorGraphs.jl icon indicating copy to clipboard operation
DistributedFactorGraphs.jl copied to clipboard

FEATURE perhaps add a read-only flag

Open dehann opened this issue 6 years ago • 0 comments

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

dehann avatar Sep 23 '19 06:09 dehann