Connected component reachability checks with merging only if direct connectivity exists