Skip to content

Commit

Permalink
Define is_constant for NodeData
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterwln committed Dec 6, 2024
1 parent d55298b commit ea6b655
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/graph_engine.jl
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,8 @@ getcontext(node::NodeData) = node.context
getproperties(node::NodeData) = node.properties
getextra(node::NodeData) = node.extra

is_constant(node::NodeData) = is_constant(getproperties(node))

"""
hasextra(node::NodeData, key::Symbol)
Expand Down

0 comments on commit ea6b655

Please sign in to comment.