Skip to content

throw ArgumentError on transitiveclosure!(::MetaGraph)#90

Merged
gdalle merged 4 commits intoJuliaGraphs:masterfrom
drbergman:restrict-transitiveclosure!
Mar 31, 2025
Merged

throw ArgumentError on transitiveclosure!(::MetaGraph)#90
gdalle merged 4 commits intoJuliaGraphs:masterfrom
drbergman:restrict-transitiveclosure!

Conversation

@drbergman
Copy link
Copy Markdown

This is responsive to #89

previously, this would not return an error but would not update the underlying graph structure.

Note: simply calling transitiveclosure!(G.graph) also fails as this does not update the metadata, e.g. G.edge_data.

previously, this would not return an error but would not update the underlying graph structure.

Note: simply calling `transitiveclosure!(G.graph)` also fails as this does not update the metadata, e.g. `G.edge_data`.
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.15%. Comparing base (1ea0c41) to head (f369715).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #90      +/-   ##
==========================================
+ Coverage   90.09%   90.15%   +0.06%     
==========================================
  Files           6        6              
  Lines         323      325       +2     
==========================================
+ Hits          291      293       +2     
  Misses         32       32              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gdalle
Copy link
Copy Markdown
Member

gdalle commented Mar 27, 2025

can you add tests to ensure code coverage?

@drbergman
Copy link
Copy Markdown
Author

added a test. awaiting maintainer approval for testing

Copy link
Copy Markdown
Member

@gdalle gdalle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue is that you didn't extend the function from Graphs, you redefined a new one.

Co-authored-by: Guillaume Dalle <22795598+gdalle@users.noreply.github.com>
@drbergman
Copy link
Copy Markdown
Author

Oh yeah! Thanks for catching that!

@drbergman drbergman requested a review from gdalle March 30, 2025 02:18
Copy link
Copy Markdown
Member

@gdalle gdalle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@gdalle gdalle merged commit 6861616 into JuliaGraphs:master Mar 31, 2025
5 checks passed
@drbergman drbergman deleted the restrict-transitiveclosure! branch March 31, 2025 11:54
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.

2 participants