This is Node1.
Here, you can go to a node only if you did not visit it yet: ,
Here is the list of visited nodes:
Here
is the source code.