Check reachability when generating rivers.