Closed aminaazaiez closed 1 year ago
Thank you for raising this issue with remove_singletons
; it will be fixed in our next release.
The issue with algorithms.hypergraph_modularity.precompute_attributes
has been addressed in release 2.0.0. For reference, the updated function can be viewed at https://github.com/pnnl/HyperNetX/blob/master/hypernetx/algorithms/hypergraph_modularity.py#L79-L129.
When I used
algorithms.hypergraph_modularity.precompute_attributes
, I realized that this function resets hyperedges weights to the unit weight. I seems that the problem comes from the first lineH = HG.remove_singletons()
. This function seems to not copy the original weights. When I delete this first lineH = HG.remove_singletons()
from the source code ofprecompute_attributes
,it works well.