private void pageRankPrior(String path, String kid,PubMedGraph g) throws Exception {
		PrintWriter out = null;
		try {
			PageRankWithPriors<MyNode, MyLink> rankerWithPriors = new PageRankWithPriors<MyNode, MyLink>(g, vertex_priors, ALPHA);
			rankerWithPriors.setMaxIterations(MAX_ITERATIONS);
			rankerWithPriors.setTolerance(TOLERANCE);
			rankerWithPriors.evaluate();
			if(log.isDebugEnabled()) {
				int iterations = rankerWithPriors.getIterations();
				log.debug("MeshPaperPageRank-pageRankPrior: iterations for keyword: " + 
						kid + " = " + iterations);
			}
			out = new PrintWriter(new FileWriter(path));
			Collection<MyNode> nodes = g.getVertices();
			
			for (MyNode node: nodes) {
				double score = rankerWithPriors.getVertexScore(node);
				if (score > 0.0)
					out.println( node + ","+ score);
			}
			return;
		} catch (Exception e) {
			throw new Exception("An exception occurred in pageRankPrior for keyword: " + 
					kid + ". Exception: " + e.getMessage(), e);
		} finally {
			try{out.flush();} catch (Exception ex){}
			try{out.close();} catch (Exception ex){}
		}
	} //end of pageRankPrior