public void initializeNetwork()
	{
		PrintWriter out = null;
		Random rng = new Random();

		try
		{
			out = new PrintWriter("rover_netwrok.dot");
		}
		catch (Exception e)
		{
			System.err.println(e.getMessage());
		}

		network.setDirected(true);
		network.setWeighted(true);
		out.println("digraph G {");

		for (int i = 1; i < 4; i++)
		{
			out.print("\tcontrol->server" + i);
			int delay = rng.nextInt(10) + 1;
			out.print(" [label=" + delay + "]\n");
			network.addEdgeWeighted("control", "server" + i, delay);

			for (int j = 0; j < 3; j++)
			{
				int k = i + j;
				out.print("\tserver" + i + "->antenna" + k);
				delay = rng.nextInt(10) + 10;
				out.print(" [label=" + delay + "]\n");
				network.addEdgeWeighted("server" + i, "antenna" + k, delay);
			}
		}

		for (int i = 1; i < 4; i++)
		{
			for (int j = 0; j < 3; j++)
			{
				int k = i + j;
				out.print("\tantenna" + k + "->station" + i);
				int delay = rng.nextInt(10) + 10;
				out.print(" [label=" + delay + "]\n");
				network.addEdgeWeighted("antenna" + k, "station" + i, delay);
			}

			out.print("\tstation" + i + "->device");
			int delay = rng.nextInt(10) + 1;
			out.print(" [label=" + delay + "]\n");
			network.addEdgeWeighted("station" + i, "device", delay);
		}

		out.println("}");
		out.close();
	}