A routing function for a conditional edge: it inspects the current state and returns the name of the node to run next, or END to finish.