It is up to each implementation to decide how to deal with the case where the current node has more than one incoming edge.
@param node the previous node, or null if no node is selected
@return the previous node, or node if there is no previous node
| |