-
Notifications
You must be signed in to change notification settings - Fork 19
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 #69 and #70 #71
fix #69 and #70 #71
Conversation
Thank you @cecileane! I love people who open issues and immediately after that open PRs to fix them 😍 My favorite kind of users, basically no work for me 🏖️ |
Codecov Report
@@ Coverage Diff @@
## master #71 +/- ##
=======================================
Coverage 93.37% 93.37%
=======================================
Files 7 7
Lines 302 302
=======================================
Hits 282 282
Misses 20 20
|
src/directedness.jl
Outdated
@@ -24,7 +26,7 @@ end | |||
@traitfn function arrange( | |||
::MG, label_1, label_2, code_1, code_2 |
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.
We can further simplify by removing these code_i
argument everywhere in the package
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.
I was thinking that too, but that meant small changes in many places. Done now!
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.
by the way: this simplification was done.
I also added a couple tests to check that the edge data was accessible and as expected.
Could you maybe add a test specifically checking that the edge data remains the same after vertex deletion? Something similar to #69? Here you are only testing that |
Also, this is a breaking change, could you bump the major version number? |
I added tests in that direction, but I'm not sure I understood what you mean. The |
I'm not sure I like the API of doing nothing if the vertex already exists. I think it makes more sense to change the data if the user requests it? |
Do you mean if the edge already exists, and we try to add it again with I don't have any strong opinion. It might be "safe" to not overwrite existing data with |
I just meant that we should check we are still able to access the right data for each edge after removal.
Maybe |
Yup
Me neither |
I think |
Okay then, if the edge is already present, let's modify the existing data binding. When multigraphs are supported, there might be a different answer See #68 |
done with b98373a: to make |
#69:
edge_data
accessible after vertex deletion, which changes vertex codes.<
.#70 for
add_edge!
: