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

Test cycles with generic graph #274

Merged

Conversation

simonschoelly
Copy link
Contributor

@simonschoelly simonschoelly commented Jul 2, 2023

This PR makes the tests for the cycles algorithm use GenericGraph

Currently the algorithms in src/cycles/incremental.jl and src/cycles/johnson.jl do not work with generic graphs - this is, because they relay on modifying graph functions. At least for johnson this might be fixable but for incremental it seems to be necessary to have modifiable graphs.

In addition, this PR changes the function cycle_basis so that it accepts an arbitrary AbstractGraph instead of just an AbstractSimpleGraph.

@simonschoelly simonschoelly added the do not merge Do not merge this PR (yet) label Jul 2, 2023
@simonschoelly simonschoelly self-assigned this Jul 2, 2023
@codecov
Copy link

codecov bot commented Jul 2, 2023

Codecov Report

Merging #274 (8aad8dc) into master (d29e1f2) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #274      +/-   ##
==========================================
+ Coverage   97.19%   97.20%   +0.01%     
==========================================
  Files         114      114              
  Lines        6658     6658              
==========================================
+ Hits         6471     6472       +1     
+ Misses        187      186       -1     

@gdalle
Copy link
Member

gdalle commented Jul 2, 2023

Partial solution to #224

@simonschoelly simonschoelly force-pushed the test-cycles-with-generic-graph branch from 2c597a5 to 8aad8dc Compare July 2, 2023 21:07
@simonschoelly simonschoelly removed the do not merge Do not merge this PR (yet) label Jul 2, 2023
@simonschoelly simonschoelly mentioned this pull request Jun 29, 2023
12 tasks
@gdalle gdalle added the enhancement New feature or request label Jul 3, 2023
Copy link
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.

LGTM, I opened issues to track the missing pieces

@gdalle gdalle merged commit ab2056a into JuliaGraphs:master Jul 5, 2023
jwassmer pushed a commit to jwassmer/Graphs.jl that referenced this pull request Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants