UPCGGraph::OnNodeAdded

Internal function to react to add/remove nodes.