-
Notifications
You must be signed in to change notification settings - Fork 28
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
fix: HG using SC as data #399
fix: HG using SC as data #399
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #399 +/- ##
==========================================
- Coverage 90.95% 90.95% -0.01%
==========================================
Files 47 47
Lines 3882 3893 +11
==========================================
+ Hits 3531 3541 +10
- Misses 351 352 +1
☔ View full report in Codecov by Sentry. |
Yeah, they should at least be consistent. I think the most natural (although the most dense) would be to keep all the subfaces when converting to a hypergraph. Perhaps you could add optional argument (maybe |
*make convert_to_hypergraph consistent between constructor and standalone *point to from_max_simplices in the docs *adjust test
Ok, I think a good solution would be:
Let me know what you think about it. |
Hi @thomasrobiglio - I like your solution! Once Max is okay with this, it's ready to squash and merge. |
Nice work thanks Thomas! I agree:
Your solution looks good. Just a few comments to make the tests more precise, otherwise good to go. |
Related to #398. The bug was coming from the condition I had set in the
convert_to_hypergraph()
in PR #345 (sry 😢). Now it should be fixed.There are two issues related to this:
xgi.Hypergraph(SC)
andxgi.SimplicialComplex(H)
are not tested!convert_to_hypergraph()
as a standalone with a SC as an object I get back the HG constructed from the maximal simplices of the SC, if instead, I call it via the constructor I get a HG in which every simplex in the SC becomes an edge. Is this ok or we want to change it?For me it is intuitive to have the standalone convert give only the maximal simplices but I guess this is debatable.