Skip to content

Commit f2ac4d9

Browse files
authored
update clustering coefficient config (#37)
1 parent 49f5936 commit f2ac4d9

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

doc/algorithm_test.md

Whitespace-only changes.

nebula-algorithm/src/main/resources/application.conf

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
algorithm: {
7777
# the algorithm that you are going to execute,pick one from [pagerank, louvain, connectedcomponent,
7878
# labelpropagation, shortestpaths, degreestatic, kcore, stronglyconnectedcomponent, trianglecount,
79-
# betweenness, graphtriangleCount]
79+
# betweenness, graphtriangleCount, clusteringcoefficient, bfs, hanp, closeness, jaccard, node2vec]
8080
executeAlgo: graphtrianglecount
8181

8282
# PageRank parameter
@@ -135,11 +135,6 @@
135135
type: local
136136
}
137137

138-
# SingleSourceShortestPathAlgo parameter
139-
singlesourceshortestpath:{
140-
sourceid:"1"
141-
}
142-
143138
# ClosenessAlgo parameter
144139
closeness:{}
145140

nebula-algorithm/src/main/scala/com/vesoft/nebula/algorithm/config/AlgoConfig.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ object CoefficientConfig {
160160

161161
def getCoefficientConfig(configs: Configs): CoefficientConfig = {
162162
val coefficientConfig = configs.algorithmConfig.map
163-
algoType = coefficientConfig("algorithm.clustercoefficient.type")
163+
algoType = coefficientConfig("algorithm.clusteringcoefficient.type")
164164
assert(algoType.equalsIgnoreCase("local") || algoType.equalsIgnoreCase("global"),
165-
"ClusterCoefficient only support local or global type.")
165+
"ClusteringCoefficient only support local or global type.")
166166
CoefficientConfig(algoType)
167167
}
168168
}

0 commit comments

Comments
 (0)