Skip to content

Commit

Permalink
use hasWeight to construct the initial graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 committed Nov 4, 2021
1 parent 8911233 commit 6956f34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ object BetweennessCentralityAlgo {
betweennessConfig: BetweennessConfig,
hasWeight: Boolean): DataFrame = {

val graph: Graph[None.type, Double] = NebulaUtil.loadInitGraph(dataset, false)
val graph: Graph[None.type, Double] = NebulaUtil.loadInitGraph(dataset, hasWeight)
val betweennessGraph = execute(graph, betweennessConfig.maxIter, hasWeight)

val schema = StructType(
Expand Down

0 comments on commit 6956f34

Please sign in to comment.