Use of connection constraints for checking and enhancing geological models