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

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


      DataSet<Tuple2<Long, Double>> pagesWithRanks = pagesInput.
          map(new RankAssigner((1.0d / 10)));
     
      // build adjacency list from link input
      DataSet<Tuple2<Long, Long[]>> adjacencyListInput =
          linksInput.groupBy(0).reduceGroup(new BuildOutgoingEdgeList());
     
      // set iterative data set
      IterativeDataSet<Tuple2<Long, Double>> iteration = pagesWithRanks.iterate(10);
     
      Configuration cfg = new Configuration();
View Full Code Here

TOP

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

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.