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

_getDuplicateEmptyDFG -> _similarDFGEmpty

Open dehann opened this issue 5 years ago • 5 comments

Better standardization with Julia base and verbNounAdjective

dehann avatar Jun 08 '20 03:06 dehann

added similar to verb definitions wiki.

dehann avatar Jun 08 '20 03:06 dehann

Just thinking, similar may be confusing, Could we maybe call it _emptyDuplicate or something?

GearsAD avatar Jul 27 '20 03:07 GearsAD

The same thing can maybe be done with the copy functions. We can perhaps use it to do the heavy lifting.

_emptyDuplicate(dfg) = deepcopyGraph(typeof(dfg), dfg, [])

The line above can be seen as a combination of copy and empty verbs

Affie avatar Jul 27 '20 09:07 Affie

+1, as suggested sounds good to me.

dehann avatar Jul 28 '20 08:07 dehann

xref #1084

Affie avatar Aug 28 '24 17:08 Affie