Added event firing for updating graph as well as parentNode field to node object