fix #18138: Validator rules for connectivity relations 18138.8.patch by Traaker_L with small modifications