private static void pageRankPrior(String path,String kid,Graph<MyNode, MyLink> g ) throws IOException{
		PrintWriter out1 = new PrintWriter(new FileWriter(path+"keyword_"+kid));
		// primitives
		// Two disconnected community on graph
		// Let's see what we have. Note the nice output from the
		// SparseMultigraph<V,E> toString() method
		
		Collection<MyNode> vertices = g.getVertices();
		// Pagerank with priors
		// Node Priors
		org.apache.commons.collections15.Transformer<MyNode, Double> vertex_priors = new org.apache.commons.collections15.Transformer<MyNode, Double>() {
			public Double transform(MyNode node) {
				return node.node_prior;
			}
		};
		// Edge Priors
//		org.apache.commons.collections15.Transformer<MyLink, Double> edge_priors = new org.apache.commons.collections15.Transformer<MyLink, Double>() {
//			public Double transform(MyLink edge) {
//				return edge.weight;
//			}
//		};
		PageRankWithPriors ranker_priors = new PageRankWithPriors(g,vertex_priors, 0.15);
		ranker_priors.setMaxIterations(10);
		for (int i = 0; i < 500; i++) {
			ranker_priors.step();
		}
		for (MyNode vertex : vertices) {
			double result=Double.valueOf( ranker_priors.getVertexScore(vertex).toString());
			
		
//			System.out.println("The ranker_priors score of " + vertex + " is: "
//					+result );
			out1.println( vertex + ","+ result);
			out1.flush();
		}	
		out1.close();
//		System.out.println(" out put finish:"+path);
	}