Skip to content

Commit

Permalink
Merge pull request #941 from angriman/refactor/dyn-betweenness-tests
Browse files Browse the repository at this point in the history
Refactor Tests for Dynamic Betweenness
  • Loading branch information
angriman committed Jul 2, 2022
2 parents a274aa0 + 123feb8 commit 85417df
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 192 deletions.
10 changes: 10 additions & 0 deletions networkit/cpp/centrality/test/CentralityGTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,16 @@ TEST_F(CentralityGTest, runApproxBetweennessSmallGraph) {
DEBUG("scores: ", bc);
}

TEST_F(CentralityGTest, runApproxBetweenness) {
DorogovtsevMendesGenerator generator(100);
Graph G1 = generator.generate();
Graph G(G1, true, false);
ApproxBetweenness bc(G, 0.1, 0.1);
bc.run();
ApproxBetweenness bc1(G1, 0.1, 0.1);
bc1.run();
}

TEST_F(CentralityGTest, testBetweennessCentralityWeighted) {
/* Graph:
0 3 6
Expand Down
Loading

0 comments on commit 85417df

Please sign in to comment.