I am not sure about this. I think that I set will at best be as fast as the current solution, but the additional node ID information stored in that set is not useful without further analysis later on. So I would keep it the way it is because this method is called *a lot* and I want it as fast as possible.