refactor: move optional arguments of topology functions behind the ellipsis#2768
Open
krlmlr wants to merge 2 commits into
Open
refactor: move optional arguments of topology functions behind the ellipsis#2768krlmlr wants to merge 2 commits into
krlmlr wants to merge 2 commits into
Conversation
krlmlr
force-pushed
the
claude/ellipsis-topology
branch
from
July 26, 2026 10:51
09fb891 to
5594b8d
Compare
krlmlr
marked this pull request as ready for review
July 26, 2026 15:03
krlmlr
force-pushed
the
claude/ellipsis-topology
branch
from
July 26, 2026 16:24
5594b8d to
0f7d122
Compare
…lipsis Insert `...` between the defining arguments and the optional modifiers of 10 functions, following the zoning rules in CONTRIBUTING.md. Legacy positional and abbreviated calls are recovered by the generated ARG_HANDLE blocks (registry: tools/migrations/topology.R) and emit a single soft deprecation for igraph 3.0.0. No defaults change and no arguments are renamed. Functions: automorphism_group, canonical_permutation, count_automorphisms, graph.count.isomorphisms.vf2, graph.count.subisomorphisms.vf2, graph.isomorphic.bliss, graph.isomorphic.vf2, graph.subisomorphic.lad, graph.subisomorphic.vf2, graph_from_isomorphism_class Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016M32izVHZPfxAqemAe4BrX
Add argument-coverage tests for the 10 functions of the topology ellipsis migration (R/topology.R): every keyword-only tail argument (sh, details, colors1/colors2, vertex.color1/vertex.color2/edge.color1/edge.color2, domains, induced, map, all.maps, time.limit, directed) is passed by name with a non-default value and asserted on, and the legacy positional form is exercised through lifecycle::expect_deprecated() with an equality check against the equivalent named call. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016M32izVHZPfxAqemAe4BrX
Contributor
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 2c90e23 is merged into main:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the repo-wide ellipsis migration coordinated in #2757 —
see that PR for the full rationale (CONTRIBUTING.md, Argument Order and the Ellipsis).
Based directly on
main(the registry split landed via #2779); a single topic commit.What this does
Inserts
...between the defining arguments (head) and the optionalmodifiers (tail) of 10 exported topology functions.
Arguments after
...become keyword-only.ARG_HANDLE block and emit a single
lifecycle::deprecate_soft("3.0.0", …)—behavior is unchanged.
tools/migrations/topology.R; blocks regenerated viaRscript tools/generate-migrations.R(idempotent, CI-checked).New signatures
automorphism_group()graph, colorssh, detailscanonical_permutation()graph, colorsshcount_automorphisms()graph, colorsshgraph.count.isomorphisms.vf2()graph1, graph2vertex.color1, vertex.color2, edge.color1, edge.color2graph.count.subisomorphisms.vf2()graph1, graph2vertex.color1, vertex.color2, edge.color1, edge.color2graph.isomorphic.bliss()graph1, graph2colors1, colors2, shgraph.isomorphic.vf2()graph1, graph2vertex.color1, vertex.color2, edge.color1, edge.color2graph.subisomorphic.lad()pattern, targetdomains, induced, map, all.maps, time.limitgraph.subisomorphic.vf2()graph1, graph2vertex.color1, vertex.color2, edge.color1, edge.color2graph_from_isomorphism_class()size, numberdirectedNotes for review
igraph.r2cdocs(GitHub API unreachable), so
man/*.Rdfiles were updated mechanically(usage +
...argument item) instead of viadevtools::document().R CMD check's usage↔formals validation passes; a follow-up
devtools::document()run may reflow whitespace but should produce nosemantic diff.
named arguments (they are the same soft-deprecation user code will see).