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

Updated add_simplices_from to match add_hyperedges_from #220

Merged
merged 5 commits into from
Nov 9, 2022

Conversation

maximelucas
Copy link
Collaborator

Updated add_simplex and add_simplices_from. Accepted input formats have changed to match the hypergraph methods.

Also fixes #218, and the new format is to use S.add_simplices_from([((1,2,3), {"color": "red"})], max_order=2).

(I didn't try to speedup anything yet despite the name of the branch, because I found this discrepancy first)

Copy link
Collaborator

@leotrs leotrs left a comment

Choose a reason for hiding this comment

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

Thanks for this. No comments, feel free to merge when ready.

My only thought is that now Hypergraph.add_edges_from and SimplicialComplex.add_simplices_from are VERY long and VERY similar, and it will be a pain to maintain both. This is precisely why we need a common interface for both classes....

@maximelucas
Copy link
Collaborator Author

My only thought is that now Hypergraph.add_edges_from and SimplicialComplex.add_simplices_from are VERY long and VERY similar, and it will be a pain to maintain both. This is precisely why we need a common interface for both classes....

Agreed of course

@maximelucas maximelucas merged commit 5592e08 into main Nov 9, 2022
@maximelucas maximelucas deleted the speedup-add-simplices branch November 9, 2022 14:14
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.

max_order not taking attributes into account in add_simplices_from
2 participants