Store the lastgraphnode to every graphnode of an expression in a class
If the lastgraphnode is already stored, then do not overwrite it