public static void polarToCartesian(Graph graph, ArrayList vertices) {
		Point2D polar, cartesian;
		for (int i=0; i<vertices.size(); i++) {
			polar = graph.pointForVertex(vertices.get(i));
			cartesian = new Point2D.Double(Math.cos(polar.getY()) * polar.getX(),
							Math.sin(polar.getY()) * polar.getX());
			graph.moveVertex(vertices.get(i), cartesian);
		}
	}