comparison src/pagerank/TPReadWikiLink.java @ 9:9787663edb54 draft

delete if expression in computePageRank method.
author one
date Wed, 05 Sep 2012 18:44:03 +0900
parents 4d1885a2fa36
children c7a7c53702dd
comparison
equal deleted inserted replaced
8:4d1885a2fa36 9:9787663edb54
38 // ltv.initPageRankAllVertex(); 38 // ltv.initPageRankAllVertex();
39 final long AllVertexNumber = ltv.searchAllVertices(); 39 final long AllVertexNumber = ltv.searchAllVertices();
40 HashMap<String, WikiPage> wikiHash = ltv.getWikiPageHash(); 40 HashMap<String, WikiPage> wikiHash = ltv.getWikiPageHash();
41 System.out.println("AllVertexNumber = "+AllVertexNumber); 41 System.out.println("AllVertexNumber = "+AllVertexNumber);
42 42
43 /*
44 String nodeIds[] = {"80", "290", "21", "164"};
45 writeComputeTransition(ltv, nodeIds, 50);
43 46
44 // String nodeIds[] = {"1574", "2829", "2850", "3618"}; 47 */
45 // writeComputeTransition(ltv, nodeIds, 50);
46
47
48 FileOutputStream fos = new FileOutputStream(new File("./resources/wikiPageRank.log")); 48 FileOutputStream fos = new FileOutputStream(new File("./resources/wikiPageRank.log"));
49 descendingOrder(wikiHash, fos); 49 descendingOrder(wikiHash, fos);
50 50
51 51
52 FileOutputStream out = new FileOutputStream(new File(fileDB)); 52 FileOutputStream out = new FileOutputStream(new File(fileDB));