Given all visiting functions never modify the nodes, we can trivially make this a const member function.