Simple graph

You're creating a new node here when one has already been provided to you as a parameter to the method here. I suspect this line of code is superfluous.