add page-rank algorithm (#70)
authorhouzhizhen <houzhizhen_101@163.com>
Thu, 5 Aug 2021 10:54:42 +0000 (18:54 +0800)
committerGitHub <noreply@github.com>
Thu, 5 Aug 2021 10:54:42 +0000 (18:54 +0800)
commitf4babdaec234af663f973e805a39b138ca028cad
tree9aa1b6de622e7a5911aea68ce6756e3a8a290e34
parent966beb3eef65243284ddc6b9d0c4deb83fe465fa
add page-rank algorithm (#70)

* add page-rank algorithm
* Set algorithm's parameters in ComputerContextUtil#initContext
* register ComputerOptions to overwrite the config in driver.config.ComputerOptions
18 files changed:
computer-algorithm/pom.xml
computer-algorithm/src/main/java/com/baidu/hugegraph/computer/algorithm/rank/pagerank/PageRank.java [new file with mode: 0644]
computer-algorithm/src/main/java/com/baidu/hugegraph/computer/algorithm/rank/pagerank/PageRank4Master.java [new file with mode: 0644]
computer-algorithm/src/main/java/com/baidu/hugegraph/computer/algorithm/rank/pagerank/PageRankParams.java [new file with mode: 0644]
computer-api/src/main/java/com/baidu/hugegraph/computer/algorithm/AlgorithmParams.java [new file with mode: 0644]
computer-api/src/main/java/com/baidu/hugegraph/computer/core/combiner/Combiner.java
computer-api/src/main/java/com/baidu/hugegraph/computer/core/combiner/ValueMinCombiner.java
computer-core/src/main/java/com/baidu/hugegraph/computer/core/compute/input/MessageInput.java
computer-core/src/main/java/com/baidu/hugegraph/computer/core/config/ComputerOptions.java
computer-core/src/main/java/com/baidu/hugegraph/computer/core/output/LimitedLogOutput.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/util/ComputerContextUtil.java
computer-test/src/main/java/com/baidu/hugegraph/computer/algorithm/rank/pagerank/AlgorithmTestSuite.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/algorithm/rank/pagerank/PageRankTest.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/config/DefaultConfigTest.java
computer-test/src/main/java/com/baidu/hugegraph/computer/core/worker/MockComputationParams.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/worker/WorkerServiceTest.java
computer-test/src/main/java/com/baidu/hugegraph/computer/suite/unit/UnitTestBase.java
computer-test/src/main/java/com/baidu/hugegraph/computer/suite/unit/UnitTestSuite.java