-
-
Notifications
You must be signed in to change notification settings - Fork 200
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: Align the body of graph.lattice()
with its replacement make_lattice()
#1439
Conversation
Current Aviator status
This PR was merged using Aviator.
See the real-time status of this PR on the
Aviator webapp.
Use the Aviator Chrome Extension
to see the status of your PR within GitHub.
|
graph.lattice()
body with its replacement make_lattice()
graph.lattice()
body with its replacement make_lattice()
graph.lattice()
with its replacement make_lattice()
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.
Good catch, thanks!
on.exit(.Call(R_igraph_finalizer)) | ||
res <- square_lattice_impl(dimvector, nei, directed, mutual, periodic) | ||
if (igraph_opt("add.params")) { | ||
res$name <- "Lattice graph" | ||
res$dimvector <- dimvector | ||
res$nei <- nei | ||
res$mutual <- mutual | ||
res$circular <- circular | ||
res$circular <- periodic |
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.
Perhaps:
res$circular <- periodic | |
res$periodic <- periodic | |
res$circular <- periodic |
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 don't have this in the original body copied here.
ea0455d
to
90f5a53
Compare
This is the fix for BCT, at least it fixes the reprex 😁
I'm a bit worried about these functions we inlined, looking forward to deprecating the old versions for good so we don't have to backport all changes. 😰
Created on 2024-07-19 with reprex v2.1.0