public static boolean isDependentOn(String v1, String v2, Grammar grammar) {
		GrammarChecker gc = new GrammarChecker();
		ProductionChecker pc = new ProductionChecker();
		Production[] productions = GrammarChecker.getProductionsOnVariable(v1,
				grammar);
		for (int k = 0; k < productions.length; k++) {
			if (ProductionChecker.isVariableInProduction(v2, productions[k])) {
				return true;
			}
		}
		return false;
	}