efficient unreachable node finding