public static boolean isLR(Textile t) {

		GammaGraph gamma = t.getGammaGraph();
		GGraph g = t.getGGraph();

		Set<GammaVertex> gammaVertices = gamma.vertexSet();

		Integer matches = 0;

		for(GammaVertex gammav : gammaVertices) {	
			for(GEdge ge :  g.incomingEdgesOf(gammav.getPVHom())) {
				for(GammaEdge gammae : gamma.incomingEdgesOf(gammav)) {
					if(gammae.getPEHom().equals(ge.getName())) {
						matches++;
					}
				}
				if(!matches.equals(1)) {
					return false;
				}
				matches = 0;
			}

			for(GEdge ge : g.outgoingEdgesOf(gammav.getQVHom())) {
				for(GammaEdge gammae : gamma.outgoingEdgesOf(gammav)) {
					if(gammae.getQEHom().equals(ge.getName())) {
						matches++;
					}					
				}
				if(!matches.equals(1)) {
					return false;
				}
				matches = 0;

			}			
		}

		return true;
	}