Package org.apache.flink.examples.java.graph.PageRankBasic

Examples of org.apache.flink.examples.java.graph.PageRankBasic.Dampener


          .join(adjacencyListInput).where(0).equalTo(0).withParameters(cfg)
          .flatMap(new JoinVertexWithEdgesMatch())
          // collect and sum ranks
          .groupBy(0).aggregate(SUM, 1)
          // apply dampening factor
          .map(new Dampener(0.85, 10));
     
      DataSet<Tuple2<Long, Double>> finalPageRanks = iteration.closeWith(
          newRanks,
          newRanks.join(iteration).where(0).equalTo(0)
          // termination condition
View Full Code Here

TOP

Related Classes of org.apache.flink.examples.java.graph.PageRankBasic.Dampener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.