Class PageRank4Master
- java.lang.Object
-
- org.apache.hugegraph.computer.algorithm.centrality.pagerank.PageRank4Master
-
- All Implemented Interfaces:
org.apache.hugegraph.computer.core.master.MasterComputation
public class PageRank4Master extends java.lang.Object implements org.apache.hugegraph.computer.core.master.MasterComputation
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAGGR_COMULATIVE_DANGLING_PROBABILITYstatic java.lang.StringAGGR_COMULATIVE_PROBABILITYstatic java.lang.StringAGGR_DANGLING_VERTICES_NUMstatic java.lang.StringAGGR_L1_NORM_DIFFERENCE_KEYstatic doubleCONF_L1_DIFF_THRESHOLD_DEFAULTstatic java.lang.StringCONF_L1_NORM_DIFFERENCE_THRESHOLD_KEY
-
Constructor Summary
Constructors Constructor Description PageRank4Master()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(org.apache.hugegraph.computer.core.master.MasterContext context)booleancompute(org.apache.hugegraph.computer.core.master.MasterComputationContext context)voidinit(org.apache.hugegraph.computer.core.master.MasterContext context)
-
-
-
Field Detail
-
CONF_L1_NORM_DIFFERENCE_THRESHOLD_KEY
public static final java.lang.String CONF_L1_NORM_DIFFERENCE_THRESHOLD_KEY
- See Also:
- Constant Field Values
-
CONF_L1_DIFF_THRESHOLD_DEFAULT
public static final double CONF_L1_DIFF_THRESHOLD_DEFAULT
- See Also:
- Constant Field Values
-
AGGR_L1_NORM_DIFFERENCE_KEY
public static final java.lang.String AGGR_L1_NORM_DIFFERENCE_KEY
- See Also:
- Constant Field Values
-
AGGR_DANGLING_VERTICES_NUM
public static final java.lang.String AGGR_DANGLING_VERTICES_NUM
- See Also:
- Constant Field Values
-
AGGR_COMULATIVE_DANGLING_PROBABILITY
public static final java.lang.String AGGR_COMULATIVE_DANGLING_PROBABILITY
- See Also:
- Constant Field Values
-
AGGR_COMULATIVE_PROBABILITY
public static final java.lang.String AGGR_COMULATIVE_PROBABILITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(org.apache.hugegraph.computer.core.master.MasterContext context)
- Specified by:
initin interfaceorg.apache.hugegraph.computer.core.master.MasterComputation
-
close
public void close(org.apache.hugegraph.computer.core.master.MasterContext context)
- Specified by:
closein interfaceorg.apache.hugegraph.computer.core.master.MasterComputation
-
compute
public boolean compute(org.apache.hugegraph.computer.core.master.MasterComputationContext context)
- Specified by:
computein interfaceorg.apache.hugegraph.computer.core.master.MasterComputation
-
-