Skip to content

Commit c2ae093

Browse files
committed
Remove unusable variables
1 parent 579f624 commit c2ae093

16 files changed

+0
-30
lines changed

nebula-algorithm/src/main/scala/com/vesoft/nebula/algorithm/lib/BetweennessCentralityAlgo.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import scala.collection.mutable.ListBuffer
1919
object BetweennessCentralityAlgo {
2020
private val LOGGER = Logger.getLogger(this.getClass)
2121

22-
val ALGORITHM: String = "BetweennessCentrality"
23-
2422
/**
2523
* run the BetweennessCentrality algorithm for nebula graph
2624
*/

nebula-algorithm/src/main/scala/com/vesoft/nebula/algorithm/lib/BfsAlgo.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import org.apache.spark.sql.{DataFrame, Dataset, Row, SparkSession}
1919
object BfsAlgo {
2020
private val LOGGER = Logger.getLogger(this.getClass)
2121

22-
val ALGORITHM: String = "BFS"
23-
2422
/**
2523
* run the louvain algorithm for nebula graph
2624
*/

nebula-algorithm/src/main/scala/com/vesoft/nebula/algorithm/lib/ClosenessAlgo.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import org.apache.spark.sql.{DataFrame, Dataset, Row, SparkSession}
1616

1717
object ClosenessAlgo {
1818
private val LOGGER = Logger.getLogger(this.getClass)
19-
val ALGORITHM: String = "Closeness"
2019
type SPMap = Map[VertexId, Double]
2120

2221
private def makeMap(x: (VertexId, Double)*) = Map(x: _*)

nebula-algorithm/src/main/scala/com/vesoft/nebula/algorithm/lib/ClusteringCoefficientAlgo.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import org.apache.spark.sql.{DataFrame, Dataset, Row, SparkSession}
1616
object ClusteringCoefficientAlgo {
1717
private val LOGGER = Logger.getLogger(this.getClass)
1818

19-
val ALGORITHM: String = "ClusterCoefficientAlgo"
20-
2119
/**
2220
* run the clusterCoefficient algorithm for nebula graph
2321
*/

nebula-algorithm/src/main/scala/com/vesoft/nebula/algorithm/lib/ConnectedComponentsAlgo.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ import org.apache.spark.sql.{DataFrame, Dataset, Row, SparkSession}
1818
object ConnectedComponentsAlgo {
1919
private val LOGGER = Logger.getLogger(this.getClass)
2020

21-
val ALGORITHM: String = "ConnectedComponents"
22-
2321
/**
2422
* run the ConnectedComponents algorithm for nebula graph
2523
*/

nebula-algorithm/src/main/scala/com/vesoft/nebula/algorithm/lib/DegreeStaticAlgo.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ object DegreeStaticAlgo {
1717

1818
private val LOGGER = Logger.getLogger(this.getClass)
1919

20-
val ALGORITHM: String = "DegreeStatic"
21-
2220
/**
2321
* run the pagerank algorithm for nebula graph
2422
*/

nebula-algorithm/src/main/scala/com/vesoft/nebula/algorithm/lib/HanpAlgo.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ import org.apache.spark.sql.{DataFrame, Dataset, Row, SparkSession}
1818
* The implementation of the algorithm refers to paper `Towards real-time community detection in large networks`.
1919
*/
2020
object HanpAlgo {
21-
val ALGORITHM: String = "Hanp"
22-
2321
/**
2422
* run the Hanp algorithm for nebula graph
2523
*/

nebula-algorithm/src/main/scala/com/vesoft/nebula/algorithm/lib/JaccardAlgo.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ import org.apache.spark.sql.types.{DoubleType, StringType, StructField, StructTy
2424
object JaccardAlgo {
2525
private val LOGGER = Logger.getLogger(this.getClass)
2626

27-
val ALGORITHM: String = "Jaccard"
28-
2927
/**
3028
* run the Jaccard algorithm for nebula graph
3129
*/

nebula-algorithm/src/main/scala/com/vesoft/nebula/algorithm/lib/KCoreAlgo.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ import org.apache.spark.sql.{DataFrame, Dataset, Row, SparkSession}
1515
object KCoreAlgo {
1616
private val LOGGER = Logger.getLogger(this.getClass)
1717

18-
val ALGORITHM: String = "KCore"
19-
2018
/**
2119
* run the louvain algorithm for nebula graph
2220
*/

nebula-algorithm/src/main/scala/com/vesoft/nebula/algorithm/lib/LabelPropagationAlgo.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ import org.apache.spark.sql.{DataFrame, Dataset, Row, SparkSession}
1818
object LabelPropagationAlgo {
1919
private val LOGGER = Logger.getLogger(this.getClass)
2020

21-
val ALGORITHM: String = "LabelPropagation"
22-
2321
/**
2422
* run the LabelPropagation algorithm for nebula graph
2523
*/

0 commit comments

Comments
 (0)