Skip to content

Commit 3fc5955

Browse files
authored
✨ solve DegreeStatic algorithm config problem (#77)
1 parent 397a8a3 commit 3fc5955

File tree

1 file changed

+4
-2
lines changed
  • nebula-algorithm/src/main/scala/com/vesoft/nebula/algorithm

1 file changed

+4
-2
lines changed

nebula-algorithm/src/main/scala/com/vesoft/nebula/algorithm/Main.scala

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ import com.vesoft.nebula.algorithm.config.{
2222
Node2vecConfig,
2323
PRConfig,
2424
ShortestPathConfig,
25-
SparkConfig
25+
SparkConfig,
26+
DegreeStaticConfig
2627
}
2728
import com.vesoft.nebula.algorithm.lib.{
2829
BetweennessCentralityAlgo,
@@ -171,7 +172,8 @@ object Main {
171172
ShortestPathAlgo(spark, dataSet, spConfig, hasWeight)
172173
}
173174
case "degreestatic" => {
174-
DegreeStaticAlgo(spark, dataSet)
175+
val dsConfig = DegreeStaticConfig.getDegreeStaticConfig(configs)
176+
DegreeStaticAlgo(spark, dataSet, dsConfig)
175177
}
176178
case "kcore" => {
177179
val kCoreConfig = KCoreConfig.getKCoreConfig(configs)

0 commit comments

Comments
 (0)