don't re-visit nodes on cross edges