CWTSLeiden / networkanalysis

Java package that provides data structures and algorithms for network analysis.
MIT License
145 stars 33 forks source link

Use clusterWeights function #17

Closed vtraag closed 3 years ago

vtraag commented 3 years ago

Given https://github.com/CWTSLeiden/networkanalysis/pull/15, it makes sense to use the getClusterWeights functions also elsewhere, which is done in this PR.

vtraag commented 3 years ago

I now reverted using getClusterWeights in place where a larger array (of size network.nNodes) is required. The larger size is necessary because it is possible that more clusters will be required than the initial number of clusters in the provided clustering.