Adding node to graph