Skip to content

Weighted Hypergraph from Dictionary Alters Dictionary #165

Description

@alysongauthier

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions