Can we reuse the node being replaced as part of the replacement graph? I think this should simply require adding data(x) to the new graph where x is the input Context object. This would create a new GraphNode (with the correct IDs and connections) but maintain exactly the same underlying data object.
We need to test this and document it as an example (as it may not be obvious to a user who is not very familiar with how graph rewriting works in VPL).
Can we reuse the node being replaced as part of the replacement graph? I think this should simply require adding
data(x)to the new graph wherexis the inputContextobject. This would create a newGraphNode(with the correct IDs and connections) but maintain exactly the same underlying data object.We need to test this and document it as an example (as it may not be obvious to a user who is not very familiar with how graph rewriting works in VPL).