Fixed graph generation error

need to specify if the data for the node was already assigned. (why?)