-
Notifications
You must be signed in to change notification settings - Fork 33
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
Implement "cleanup" method #36
Comments
#39 implements |
Other ideas for 2 |
So you're saying that we have a cleanup method that does these four steps? I like that idea and also we should add the possibility to collapse loopy hyperedges. |
We don't have it yet, but I want to implement it.
Good catch! |
For now I think it'd be nice to have something like the following: class Hypergraph:
...
def cleanup(self):
self.remove_isolates()
self.remove_singletons()
self.collapse_loopy_edges() # not implemented yet
self.remove_duplicates() # not implemented yet
self.relabel_nodes() # not implemented yet
... What other operations should |
Closed by #161 |
Make sure the documentation highlights the fact that the user should remember to callremove_isolates
and other related functions.Implement a
cleanup
method that performs various common clean up tasks, see comment down thread.The text was updated successfully, but these errors were encountered: