private void makeAgents() {
	
	// Run through and make new agents.
	
	agents = new Vector();
	Agent lastAgent = null;
	
	for (int i = 0; i < numberOfAgents; i++) {
	    
	    Agent temp = new Agent();
	    
            temp.setName("Agent-" + i);
            
	    // Random geographical position.
	    
	    int x = (int)(Math.random() * width);
	    int y = (int)(Math.random() * height);
	    
	    temp.setX(x);
	    temp.setY(y);
	    
	    // Calculate graph space display position (works in radians).
	    
	    double positionAngle = ((double)i * angle * Math.PI)/180.0;
	    
	    int graphX = (int)(radius * Math.sin(positionAngle));
	    int graphY = (int)(radius * Math.cos(positionAngle));
	    
	    temp.setGraphX(graphX);
	    temp.setGraphY(graphY);
	    
	    // Connect each agent with the last one, vice versa,
	    // and the first and last.
	    
	    if (lastAgent != null) {
		temp.addNeighbour(lastAgent);
		lastAgent.addNeighbour(temp);
	    }
	    
	    if (i == (numberOfAgents - 1)) {
		lastAgent = (Agent) agents.elementAt(0);
		temp.addNeighbour(lastAgent);
		lastAgent.addNeighbour(temp);
	    }
	    
	    agents.add(temp);
	    lastAgent = temp;
	}
	
    } // End of makeAgents.