public static Transition[] getTransitionsForProduction(
			Production production, VariableDependencyGraph graph) {
		ArrayList list = new ArrayList();
		String v1 = production.getLHS();
		ProductionChecker pc = new ProductionChecker();
		String rhs = production.getRHS();
		for (int k = 0; k < rhs.length(); k++) {
			char ch = rhs.charAt(k);
			if (ProductionChecker.isVariable(ch)) {
				StringBuffer buffer = new StringBuffer();
				buffer.append(ch);
				list.add(getTransition(v1, buffer.toString(), graph));
			}
		}
		return (Transition[]) list.toArray(new Transition[0]);
	}