public List<WebNodePair> getRanks(String word, WebGraph g) {
		List<WebNodePair> result = new ArrayList<WebNodePair>();
		for (WebNode w : g.getPages()){
			String url = w.getUrl().toExternalForm();
			if (this.words.containsKey(word) && this.words.get(word).getPages().size() != 0)
			{
				WebNodePair p = new WebNodePair(url, this.words.get(word).getCountByURL(url));
				result.add(p);
			}
			
		}
		
		return result;
	}