Normally, one would not store an entire set in memory (via copying actions) and should rather store a boolean flag in each node to designate if it has been visited or not (to avoid mutations)
Assignment Operations (= and ←)
The equals sign is generally used for both the assignment operation and the boolean equality check