do not check paths if nodes are connected