public static void initializeVariableDependencyGraph(
			VariableDependencyGraph graph, Grammar grammar) {
		String[] variables = (String[]) getCompleteUsefulVariableSet(grammar)
				.toArray(new String[0]);
		for (int k = 0; k < variables.length; k++) {
			double theta = 2.0 * Math.PI * (double) k
					/ (double) variables.length;
			Point point = new Point(200 + (int) (180.0 * Math.cos(theta)),
					200 + (int) (180.0 * Math.sin(theta)));
			State state = graph.createState(point);
			state.setName(variables[k]);
			if (variables[k].equals(grammar.getStartVariable()))
				graph.setInitialState(state);
		}
	}