Skip to content

Commit

Permalink
Fix weighted mean betweenness
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlees committed Jan 27, 2021
1 parent 1c71aba commit 89c1252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ set_target_properties("${TARGET_NAME}" PROPERTIES
)

target_link_libraries("${TARGET_NAME}" PRIVATE pybind11::module Eigen3::Eigen
z gomp openblas lapack gfortran m dl)
z gomp openblas gfortran m dl)
#if(OpenMP_CXX_FOUND)
# target_link_libraries("${TARGET_NAME}" PRIVATE OpenMP::OpenMP_CXX)
#endif()
2 changes: 1 addition & 1 deletion PopPUNK/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def networkSummary(G, calc_betweenness=True):

if len(betweenness) > 1:
mean_bt = np.mean(betweenness)
np.average(betweenness, weights=sizes)
weighted_mean_bt = np.average(betweenness, weights=sizes)

metrics = [components, density, transitivity, mean_bt, weighted_mean_bt]
base_score = transitivity * (1 - density)
Expand Down

0 comments on commit 89c1252

Please sign in to comment.