Mesh connectivity tests for line and quad meshes.