Introduced virtual equality function for nodes. Just checking if node A == B in my opinion isn't necessarily the best approach when using objects as nodes. However, there might be other places where replacing A == B with graph->NodesEqual(A, B) might be required.