Callback for when a node is visited. The node is the node being visited, and the pin is the pin which the node was accessed by (eg, if visiting downstream nodes, the pin will be the input pin that connects to the node that the traversal started from, or the node that was previously visited).