public static void main(String[] args)
	{
		WebGraph G = new WebGraph();
		InvertedIndex inverted = new InvertedIndex();
		crawl(G, inverted);
		List<WebNodePair> resultHits = Hits(G);
		PrintToFile(G.getPages(), "urls.txt", -1);
		PrintToFile(resultHits, "rank.txt", best);
		Scanner scanner = new Scanner(System.in);
		while (true)
		{
			System.out.print("\nEnter Words For Search > ");
			String input = scanner.nextLine();
			System.out.println();
			if (input.equals("exit"))
			{
				scanner.close();
				return;
			}

			List<WebNodePair> resultForOutput = CalcTaResult(input.toLowerCase(), G, resultHits, inverted);
			if (resultForOutput == null)
			{
				System.out.println("no pages found for your search :(");
			}
			else
			{
				for (int i = 0; i < resultForOutput.size(); i++)
				{
					System.out.println(resultForOutput.get(i));
				}
			}
		}
	}