Skip to content

Commit 54304cc

Browse files
committed
addTags convenience
1 parent cdb5912 commit 54304cc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/CommonAccessors.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ Return the tags for a variable.
4040
"""
4141
getTags(v::DataLevel0) = v.tags
4242

43+
function getTags(dfg::InMemoryDFGTypes, sym::Symbol)
44+
getFnc = isVariable(dfg,sym) ? getVariable : getFactor
45+
getTags(getFnc(dfg, sym))
46+
end
47+
4348
"""
4449
$SIGNATURES
4550

0 commit comments

Comments
 (0)