-
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
Simplify dihypergraph #541
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #541 +/- ##
==========================================
+ Coverage 92.35% 92.49% +0.14%
==========================================
Files 60 59 -1
Lines 4499 4346 -153
==========================================
- Hits 4155 4020 -135
+ Misses 344 326 -18 ☔ View full report in Codecov by Sentry. |
@maximelucas - when do you think you will be able to take a look at this? Thanks! |
I've had a look now, thanks! The main one may be about about the choice between having If the API for the user is unchanged it's not needed, but otherwise we should document this somewhere. |
Thanks for the review! I've thought quite a bit about your suggestion and I'd like to leave the structure (
As far as your question goes, IMO it's most natural to think about it in the bipartite sense. If a node is specified as an input (in the tail) in a directed edge, that edge will add to its out-degree. |
Thanks! |
This PR changes the internals of
DiHypergraph
so that it is more consistent with the other classes. This is an attempt to start addressing #379. This PR_node_in
and_node_out
with_node
where_node[n]
is of the form{"in": {tail}, "out": {head}}
_edge_in
and_edge_out
with_edge
where_edge[n]
is of the form{"in": {}, "out": {}}
DiIDView
since now we can simply inherit fromIDView
.DiNodeView
andDiEdgeView
toviews.py
and deletesdiviews.py
test_views.py