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

Cleanup hypergraph methods #150

Merged
merged 12 commits into from
Aug 22, 2022
Merged

Cleanup hypergraph methods #150

merged 12 commits into from
Aug 22, 2022

Conversation

leotrs
Copy link
Collaborator

@leotrs leotrs commented Aug 18, 2022

Final PR regarding #94 .

  1. Hypergraph.has_edge has become IDView.lookup.
  2. Hypergraph.duplicate_edges has been become IDView.duplicates.
  3. I had to move utilities.convert_labels_to_integer to function.convert_labels_to_integer due to relative import weirdness.
  4. A IDView behaves like a list when coercing it to bool (for example we can do if view: ..., and view will evaluate to False if it is empty). This was already implemented, but I added a test for it.

Closes #94.
Closes #93.

Copy link
Collaborator

@nwlandry nwlandry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good to me!

@leotrs leotrs merged commit 75d6f9c into main Aug 22, 2022
@leotrs leotrs deleted the cleanup-hypergraph-methods branch August 22, 2022 05:15
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

Successfully merging this pull request may close these issues.

Move some methods away from the base classes Implement method that returns nodes with the same memberships
2 participants