Class PageRank
- java.lang.Object
-
- com.alibaba.graphscope.communication.Communicator
-
- com.alibaba.graphscope.example.pagerank.PageRank
-
- All Implemented Interfaces:
AppBase<Long,Long,Long,Double,PageRankContext>
,ParallelAppBase<Long,Long,Long,Double,PageRankContext>
,ParallelEngine
public class PageRank extends Communicator implements ParallelAppBase<Long,Long,Long,Double,PageRankContext>, ParallelEngine
-
-
Field Summary
-
Fields inherited from interface com.alibaba.graphscope.parallel.ParallelEngine
chunkSize
-
-
Constructor Summary
Constructors Constructor Description PageRank()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
IncEval(IFragment<Long,Long,Long,Double> fragment, ParallelContextBase<Long,Long,Long,Double> contextBase, ParallelMessageManager parallelMessageManager)
Incremental Evaluation to implement.void
PEval(IFragment<Long,Long,Long,Double> fragment, ParallelContextBase<Long,Long,Long,Double> contextBase, ParallelMessageManager parallelMessageManager)
Partial Evaluation to implement.-
Methods inherited from class com.alibaba.graphscope.communication.Communicator
getFFICommunicator, max, min, sum
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alibaba.graphscope.parallel.ParallelEngine
forEachLabelVertex, forEachLabelVertex, forEachVertex, forEachVertex, forEachVertex, forEachVertexSendMsg, forEachVertexSendMsg
-
-
-
-
Method Detail
-
PEval
public void PEval(IFragment<Long,Long,Long,Double> fragment, ParallelContextBase<Long,Long,Long,Double> contextBase, ParallelMessageManager parallelMessageManager)
Description copied from interface:ParallelAppBase
Partial Evaluation to implement.- Specified by:
PEval
in interfaceParallelAppBase<Long,Long,Long,Double,PageRankContext>
- Parameters:
fragment
- fragment. The graph fragment providing accesses to graph data.contextBase
- context. User defined context which manages data during the whole computations.parallelMessageManager
- The message manger which manages messages between fragments.- See Also:
IFragment
,ParallelContextBase
,ParallelMessageManager
-
IncEval
public void IncEval(IFragment<Long,Long,Long,Double> fragment, ParallelContextBase<Long,Long,Long,Double> contextBase, ParallelMessageManager parallelMessageManager)
Description copied from interface:ParallelAppBase
Incremental Evaluation to implement.- Specified by:
IncEval
in interfaceParallelAppBase<Long,Long,Long,Double,PageRankContext>
- Parameters:
fragment
- fragment. The graph fragment providing accesses to graph data.contextBase
- context. User defined context which manages data during the whole computations.parallelMessageManager
- The message manger which manages messages between fragments.- See Also:
IFragment
,ParallelContextBase
,ParallelMessageManager
-
-