Examples of danglingRank()


Examples of eu.stratosphere.test.iterative.nephele.danglingpagerank.PageRankStats.danglingRank()

   
    if (currentIteration == 1) {
      danglingRankFactor = BETA * (double) numDanglingVertices / ((double) numVertices * (double) numVertices);
    } else {
      PageRankStats previousAggregate = getIterationRuntimeContext().getPreviousIterationAggregate(AGGREGATOR_NAME);
      danglingRankFactor = BETA * previousAggregate.danglingRank() / (double) numVertices;
    }
  }

  @Override
  public void coGroup(Iterator<VertexWithRankAndDangling> currentPageRankIterator, Iterator<VertexWithRank> partialRanks,
View Full Code Here

Examples of org.apache.flink.test.iterative.nephele.danglingpagerank.PageRankStats.danglingRank()

   
    if (currentIteration == 1) {
      danglingRankFactor = BETA * (double) numDanglingVertices / ((double) numVertices * (double) numVertices);
    } else {
      PageRankStats previousAggregate = getIterationRuntimeContext().getPreviousIterationAggregate(AGGREGATOR_NAME);
      danglingRankFactor = BETA * previousAggregate.danglingRank() / (double) numVertices;
    }
  }

  @Override
  public void coGroup(Iterable<VertexWithRankAndDangling> currentPageRankIterable, Iterable<VertexWithRank> partialRanks,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.