Skip to content

Commit

Permalink
Merge pull request #7 from Nicole00/betweenness
Browse files Browse the repository at this point in the history
use hasWeight to construct the initial graph
  • Loading branch information
jievince committed Nov 8, 2021
2 parents 2e95c3a + 6956f34 commit 3cf85fb
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 3cf85fb

Please sign in to comment.