-
Notifications
You must be signed in to change notification settings - Fork 27
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
included functions from publication #400
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #400 +/- ##
==========================================
+ Coverage 90.95% 90.97% +0.01%
==========================================
Files 47 48 +1
Lines 3882 3944 +62
==========================================
+ Hits 3531 3588 +57
- Misses 351 356 +5
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good! My biggest question would be if you could mirror some of the same syntax in the double_edge_swap
method of the hypergraph class. No worries if it doesn't make sense.
Good point, let me have a look. You mean like the docstrings and variable names? Btw, should we also move |
I see double edge swap as a fundamental edge operation so I would keep in in Hypergraph for now. I didn't look very closely, but the contents of |
Finally had a better look.
Happy to change anything, let me know what you think. |
@maximelucas: I'm good with you merging it, thanks for the additional clarification. We can probably revisit whether |
* feat: added shuffle_hyperedges + tests * feat: added shuffle_hyperedges + tests * fix: filenames * fix: tests * style: black and isort * feat: added function node_swap + test * style: black and isort * fix: error from python 3.11
* Added weights option to to_line_graph function. * Added tests for weighted line graph implementation. * Added s=2 test. * Added encapsulation dag code. * Added encapsulation dag tests. * Removed unnecessary combinations import. * Updated docstring. * included functions from publication (#400) * feat: added shuffle_hyperedges + tests * feat: added shuffle_hyperedges + tests * fix: filenames * fix: tests * style: black and isort * feat: added function node_swap + test * style: black and isort * fix: error from python 3.11 * attempt at listing the available statistics (#405) * attempt at listing the available statistics * fixing previous errors * Attempt at implementing suggestions by nich * second attempt at displaying the titles * another trial * titles in bold * update of the panel for dihypergraph stats * minor fixes * change the hierarchical structure * minor change * moving MultiDi-stats in the right place * adding decorators to the admonition box * moving up the decorators * up-version * feat: enforce equal aspect for circular layout #430 (#432) * feat: enforce equal aspect for circular layout #430 * changed implementation of set_aspect * Refactor draw module (#435) * refact: draw module * style: black and isort * fix #331 (#438) * Added the ability for users to access the optional arguments of NetworkX layout functions. (#439) * Added another test. * Refactored relations to subset_types. Exposed and documented empirical relations filtering function. Documentation improvements. * Update xgi/convert/encapsulation_dag.py documentation Co-authored-by: Maxime Lucas <maximelucas@users.noreply.github.com> * Fix typo in xgi/convert/encapsulation_dag.py Co-authored-by: Maxime Lucas <maximelucas@users.noreply.github.com> * Updates to documentation. * Minor refactor. --------- Co-authored-by: Maxime Lucas <maximelucas@users.noreply.github.com> Co-authored-by: Thomas Robiglio <83019028+thomasrobiglio@users.noreply.github.com> Co-authored-by: Nicholas Landry <nicholas.landry.91@gmail.com>
I added two functions I made here: https://github.com/maximelucas/HOI_shape_sync_differently/blob/main/utils.py
shuffle_hyperedges(H, order, p)
: shuffle hyperedges with a given probabilitynode_swap(H, nid1, nid2, order)
: swap node membership in edges of given orderI put them in a new file
generators/randomizing.py
.