public void instantiateGraph(ArrayList<Term> query1, ArrayList<Term> query2, ArrayList<Term> query3, ArrayList<Integer> filterPages){
		//Clear any prior contents
		g = new UndirectedSparseMultigraph<Node, MyLink>();
		//update the graph with these 3 queries.
		if(query1.size() != 0){
			textInformation+="Red Terms:\n";
		}
		addNodes(query1, 1, filterPages);
		if(query2.size() != 0){
			textInformation+="Green Terms:\n";
		}
		addNodes(query2, 2, filterPages);
		if(query3.size() != 0){
			textInformation+="Blue Terms:\n";
		}
		addNodes(query3, 3, filterPages);
		addSubTermConnections();
	}