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

Prevent addition in underlying graph when dictionary operations failed #52

Merged
merged 2 commits into from
Mar 26, 2023

Conversation

gdalle
Copy link
Member

@gdalle gdalle commented Mar 25, 2023

Fixes #51 by switching the order of operations during vertex / edge addition: first dictionary updates, then modification of the underlying graph. If the dictionary updates throw a MethodError due to improper types, the underlying graph doesn't change

@codecov
Copy link

codecov bot commented Mar 25, 2023

Codecov Report

Merging #52 (1433c8a) into master (1944ef0) will decrease coverage by 0.16%.
The diff coverage is 68.42%.

@@            Coverage Diff             @@
##           master      #52      +/-   ##
==========================================
- Coverage   93.10%   92.95%   -0.16%     
==========================================
  Files           7        7              
  Lines         290      298       +8     
==========================================
+ Hits          270      277       +7     
- Misses         20       21       +1     
Impacted Files Coverage Δ
src/graphs.jl 88.09% <68.42%> (-0.89%) ⬇️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@gdalle gdalle requested a review from bramtayl March 25, 2023 23:25
@bramtayl
Copy link
Collaborator

Oh yeah looks good!

@gdalle gdalle removed the request for review from bramtayl March 26, 2023 15:57
@gdalle gdalle merged commit e599c71 into master Mar 26, 2023
@gdalle gdalle deleted the fix_addition branch March 25, 2024 12:32
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.

Vertex number increases when illegally defining new node in test_throws
2 participants