diff src/pagerank/WikiPage.java @ 5:140272228818 draft

fix LinkToVertex.java
author one
date Wed, 05 Sep 2012 15:38:57 +0900
parents 1744340f8be6
children 4ed8a8a5ef92
line wrap: on
line diff
--- a/src/pagerank/WikiPage.java	Wed Sep 05 12:44:08 2012 +0900
+++ b/src/pagerank/WikiPage.java	Wed Sep 05 15:38:57 2012 +0900
@@ -25,7 +25,7 @@
 	
 	WikiPage(Vertex v) {
 		this.title = (String) v.getProperty(LinkToVertex.PAGE_TITLE);
-		this.id = (Long) v.getId();
+		this.id = Long.parseLong((String)v.getId());
 		this.rank = (Double)v.getProperty(LinkToVertex.PAGE_RANK);
 		this.outHasLink = 0;
 		this.inHasLink = 0;