Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weighted Hypergraph from Dictionary Alters Dictionary #165

Open
alysongauthier opened this issue Jan 2, 2025 · 0 comments
Open

Weighted Hypergraph from Dictionary Alters Dictionary #165

alysongauthier opened this issue Jan 2, 2025 · 0 comments

Comments

@alysongauthier
Copy link

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:

  1. Create a nested dictionary with a weight key
  2. Create a hypergraph from the dictionary
  3. 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
Screenshot 2025-01-02 at 10 11 48 AM

Environment (please complete the following information):

  • Linux
  • Python 3.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant