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

Fix issymmetric #265

Merged
merged 5 commits into from
Jun 28, 2023
Merged

Fix issymmetric #265

merged 5 commits into from
Jun 28, 2023

Conversation

gdalle
Copy link
Member

@gdalle gdalle commented Jun 28, 2023

Solve #248

@gdalle gdalle linked an issue Jun 28, 2023 that may be closed by this pull request
@gdalle gdalle removed the request for review from simonschoelly June 28, 2023 12:27
@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Merging #265 (9d2afb9) into master (327740b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #265   +/-   ##
=======================================
  Coverage   97.17%   97.17%           
=======================================
  Files         114      114           
  Lines        6649     6656    +7     
=======================================
+ Hits         6461     6468    +7     
  Misses        188      188           

src/operators.jl Outdated Show resolved Hide resolved
Comment on lines +206 to +214
gx = SimpleDiGraph(4)
add_edge!(gx, 1, 2)
add_edge!(gx, 2, 1)
add_edge!(gx, 1, 3)
add_edge!(gx, 3, 1)
@testset "Matrix operations: $g" for g in testdigraphs(gx)
@test @inferred(issymmetric(g))
end

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we rewrite this test in terms of GenericDiGraph, now that we have it?

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't check but I don't think Generic(Di)Graph is used anywhere in the tests yet? The corresponding issue #133 is still open and doesn't have a PR associated with it?

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree that in time GenericGraph should be everywhere, but inserting it in only one spot seems a bit weird, kinda like removing the "not implemented" error the other day 😉

Copy link
Contributor

Choose a reason for hiding this comment

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

It is indeed only uses somehwhere in traversals/dfs.jl. We don't have to insert it here, I just approve it for now, although in general I think we can suggest it in new PRs.

I haven't gotten around, but I guess then I will start creating some PRs that will switch to GenericGraph - I don't want to do the whole Graphs package in one PR though, that will be way too big and newer get reviewed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe GenericGraph could wait for GraphsBase before spreading through our tests?
JuliaGraphs/GraphsBase.jl#6

@simonschoelly
Copy link
Contributor

Mostly looks good to me, perhaps that one issue about the tests but otherwise I am all for merging.

@gdalle gdalle merged commit 3c97457 into master Jun 28, 2023
12 checks passed
@gdalle gdalle deleted the issymmetric branch June 28, 2023 21:27
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.

issymmetric(::SimpleDiGraph) not correct
2 participants