Describe the bug
When creating a weighted hypergraph from a nested dictionary, the dictionary is altered in place and the weights are removed from the original dictionary
To Reproduce
Steps to reproduce the behavior:
- Create a nested dictionary with a weight key
- Create a hypergraph from the dictionary
- Examine the nested dictionary and note that the weight key has been removed
Expected behavior
The nested dictionary should not have any loss of information after creating the hypergraph
Screenshots

Environment (please complete the following information):