Skip to content

refactor: Purge legacy alias formals via the migration registry - #2863

Merged
schochastics merged 23 commits into
claude/issue-2788-subagents-faw1t1-4from
claude/issue-2788-subagents-faw1t1-5
Dec 3, 2026
Merged

schochastics merged 23 commits into
claude/issue-2788-subagents-faw1t1-4from
claude/issue-2788-subagents-faw1t1-5

Conversation

@krlmlr

@krlmlr krlmlr commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Part of #2788 (PR 5 of the stack, on top of #2862); answers the survey's "migrate the existing hand-rolled alias formals into the registry" question for the aliases that are ready, so the signatures shrink to canonical names.

What this does

  • layout_with_fr(): the trailing maxiter = deprecated() formal disappears; the registry now recovers maxiter = as a rename to niter (which refactor: Rename iteration arguments to n_iter/max_iter #2945 then renames to n_iter, per the iterations decision). This alias was bridged silently before (no deprecation signal at all) — it now gets the standard 3.0.0 soft-deprecation.
  • layout_with_kk(): start (alias of coords) cannot ride the registry because coords is a head formal, so the sentinel formal stays — but the bridge now emits the previously missing deprecate_soft() (it was a silent alias too), and the @param gains its deprecated badge.
  • cluster_leiden(): gains its missing registry entry (it was the only cluster_*() without one, still on strict check_dots_empty()). The resolution_parameter = deprecated() formal and hand bridge are removed; the registry recovers it as a rename to resolution. The old entry reproduces the true v2.0.0 positional signature (verified against the v2.0.0 tag, commit 8102f30, where resolution_parameter was canonical slot 4), so both 2.0-era positional calls and 2.1-era keyword calls recover correctly.

Deliberately left for a follow-up

  • bfs()/dfs() keep their hard-deprecated neimode/father formals and the res$neimode/res$father return fields. An earlier version of this PR removed them, but that changes the return value and edits the deprecated graph.bfs()/graph.dfs() wrappers, so it moves to the deprecation-advancement track (write code to advance lifecycle deprecations #1121).

  • make_lattice()/lattice() circular → periodic: these functions have no ellipsis migration yet; the alias should ride that migration when it happens (note the known dim/dimvector prefix hazard documented in the generator fixture).

  • eigen_centrality()/centr_eigen()/centr_eigen_tmax() scale = deprecated(): dropped functionality (normalization is always on), not aliases — nothing to recover; removal is a later deprecation-advancement step (write code to advance lifecycle deprecations #1121).

  • layout_with_fr()/layout_with_kk() zombie formals (coolexp, maxdelta, area, repulserad, sigma, initemp, niter-on-kk) — hard-stopped since 0.8.0; same advancement track. The niter/maxiter role swap between fr and kk is resolved by the iterations rename in refactor: Rename iteration arguments to n_iter/max_iter #2945.

The #2788 stack

Each PR is based on the previous one and merges in this order:

  1. refactor: Rename algo to algorithm in page_rank(), feedback_arc_set() and feedback_vertex_set() #2859: algo → algorithm
  2. refactor: Rename nodes to n in generators and centr_*_tmax() #2860: nodes → n (vertex counts)
  3. refactor: snake_case weights arguments in clique functions and cluster_infomap() #2861: weights arguments
  4. refactor: Rename normalization flags to normalized #2862: normalization flags → normalized
  5. refactor: Purge legacy alias formals via the migration registry #2863: hand-rolled alias formals into the registry ← this PR
  6. refactor: Rename vertex-selector arguments to vertices and vertex #2864: selectors → vertices/vertex
  7. refactor: Rename edge-selector arguments to edges #2943: edge selectors → edges
  8. refactor: Rename index to vertices/edges in the attribute accessors #2944: attribute accessors: index → vertices/edges
  9. refactor: Rename iteration arguments to n_iter/max_iter #2945: iterations → n_iter/max_iter
  10. refactor: snake_case the dotted arguments of the graph generators and degree-sequence functions #2946: snake_case: generators and degree sequences
  11. refactor: snake_case the dotted arguments of the layout functions #2947: snake_case: layouts
  12. refactor: snake_case the dotted arguments of the community, HRG, motif and graphlet functions #2948: snake_case: community, HRG, motifs, graphlets (Mu → mu)
  13. refactor: snake_case the dotted arguments of the structural and conversion functions #2950: snake_case: structural and conversion functions
  14. refactor: Rename algorithm-selection arguments to algorithm and measure selection to measure #2951: algorithm family → algorithm/measure (closes Algorithm-selection argument names: census of method/algorithm/algo/impl/implementation #2932)

🤖 Generated with Claude Code

https://claude.ai/code/session_01RTPj4qNv2FWui6etixZeuR


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

This is how benchmark results would change (along with a 95% confidence interval in relative change) if e79a7b8 is merged into claude/issue-2788-subagents-faw1t1-4:

  • ✔️as_adjacency_matrix: 842ms -> 843ms [-1.58%, +1.73%]
  • ✔️as_biadjacency_matrix: 861ms -> 860ms [-1.19%, +0.87%]
  • ✔️as_data_frame_both: 1.91ms -> 1.87ms [-6.52%, +2.03%]
  • ✔️as_long_data_frame: 4.72ms -> 4.62ms [-4.11%, +0.2%]
  • ✔️es_attr_filter: 2.95ms -> 2.95ms [-3.96%, +3.54%]
  • ✔️graph_from_adjacency_matrix: 134ms -> 134ms [-1.71%, +1.77%]
  • ✔️graph_from_data_frame: 4.17ms -> 4.15ms [-2.27%, +0.95%]
  • ✔️vs_attr_filter: 1.8ms -> 1.8ms [-2.86%, +2.66%]
  • ✔️vs_by_name: 1.12ms -> 1.13ms [-3.06%, +4.04%]
    Further explanation regarding interpretation and methodology can be found in the documentation.

`layout_with_fr(maxiter = )` folds into the registry
as a rename to `niter`
(the alias was silent before, now it soft-deprecates),
`layout_with_kk(start = )` gains its missing soft-deprecation,
`cluster_leiden()` joins the registry
with `resolution_parameter` recovered as `resolution`,
and the long-dead `neimode`/`father` formals and result aliases
of `bfs()`/`dfs()` are removed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RTPj4qNv2FWui6etixZeuR
@krlmlr
krlmlr force-pushed the claude/issue-2788-subagents-faw1t1-5 branch from 1733f27 to c6e2a30 Compare September 10, 2026 09:03
schochastics and others added 2 commits October 15, 2026 21:09
…and return fields

Removing them changes the return value and edits the deprecated
`graph.bfs()`/`graph.dfs()` wrappers; this belongs to the
deprecation-advancement track (#1121), not the #2788 rename wave.

Also regenerates migration blocks after merging the base branch.

Part of #2788.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

This is how benchmark results would change (along with a 95% confidence interval in relative change) if bf02258 is merged into claude/issue-2788-subagents-faw1t1-4:

  • ✔️E_named: 265ms -> 264ms [-5.47%, +4.37%]
  • ✔️V_named: 481ms -> 481ms [-1.14%, +1.11%]
  • ✔️all_simple_paths_named: 147ms -> 147ms [-0.41%, +1.21%]
  • ✔️as_adjacency_matrix: 266ms -> 266ms [-0.6%, +0.53%]
  • ✔️as_biadjacency_matrix: 286ms -> 288ms [-0.36%, +2.02%]
  • ✔️as_data_frame_both: 254ms -> 254ms [-0.8%, +0.63%]
  • ✔️as_long_data_frame: 201ms -> 201ms [-0.79%, +0.65%]
  • ✔️ego_order2_named: 167ms -> 168ms [-0.54%, +2.27%]
  • ✔️es_attr_assign: 258ms -> 258ms [-0.88%, +1.22%]
  • ✔️es_attr_filter: 264ms -> 265ms [-0.4%, +1.01%]
  • ✔️graph_from_adjacency_matrix: 316ms -> 314ms [-1.06%, +0.11%]
  • ✔️graph_from_data_frame: 285ms -> 285ms [-0.95%, +0.6%]
  • ✔️head_of_named: 183ms -> 183ms [-1.44%, +1.23%]
  • ✔️incident_edges: 198ms -> 198ms [-1.74%, +1.57%]
  • ✔️max_cliques_named: 27.3ms -> 27.3ms [-0.68%, +0.91%]
  • ✔️neighbors_by_name: 249ms -> 248ms [-1.22%, +0.66%]
  • ✔️union_named: 273ms -> 276ms [-3.12%, +4.67%]
  • ✔️vs_attr_filter: 281ms -> 281ms [-1.3%, +0.97%]
  • 🚀vs_by_name: 234ms -> 232ms [-1.77%, -0.01%]
    Further explanation regarding interpretation and methodology can be found in the documentation.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

This is how benchmark results would change (along with a 95% confidence interval in relative change) if f43b624 is merged into claude/issue-2788-subagents-faw1t1-4:

Status Name Current Incoming Interval
✔️ V_named 437.2ms 437.7ms [-0.44%, +0.65%]
✔️ vs_by_name 308.4ms 308.1ms [-1.74%, +1.54%]
✔️ graph_from_data_frame 298.9ms 298.3ms [-1.18%, +0.76%]
❗🐌 graph_from_adjacency_matrix 277.2ms 278.7ms [+0.05%, +1.02%]
✔️ vs_subset_positional 257.2ms 257.9ms [-0.4%, +0.97%]
✔️ as_biadjacency_matrix 243.2ms 242.4ms [-2.23%, +1.54%]
✔️ vs_attr_filter 241ms 241.1ms [-0.92%, +1%]
✔️ es_attr_filter 236.1ms 236.8ms [-0.28%, +0.9%]
✔️ es_attr_assign 233.8ms 233.3ms [-1.01%, +0.51%]
🚀 as_data_frame_both 227.8ms 226ms [-1.48%, -0.1%]
✔️ as_adjacency_matrix 222.8ms 222.8ms [-0.64%, +0.7%]
✔️ E_named 217.3ms 217ms [-2.03%, +1.74%]
✔️ incident_edges 215.6ms 215.3ms [-0.7%, +0.39%]
✔️ max_cliques_sizes_named 213.8ms 213.3ms [-0.6%, +0.11%]
✔️ as_long_data_frame 211.9ms 211.2ms [-1.53%, +0.84%]
✔️ union_named 190.6ms 189.3ms [-2.17%, +0.9%]
✔️ head_of_named 187.2ms 187.9ms [-0.04%, +0.84%]
🚀 neighbors_by_name 187.4ms 185.7ms [-1.59%, -0.31%]
✔️ ego_order2_named 162.1ms 162.8ms [-0.6%, +1.48%]
✔️ all_simple_paths_named 149.4ms 149.1ms [-1.22%, +0.71%]
✔️ vs_by_literal_name 139.3ms 139.9ms [-0.43%, +1.33%]
✔️ degree_few_vertices 128.8ms 129.2ms [-0.28%, +0.88%]
✔️ strength_weighted_named 42.1ms 41.5ms [-5.85%, +2.86%]
✔️ max_cliques_named 27ms 27.1ms [-0.44%, +0.95%]

Further explanation regarding interpretation and methodology can be found in the documentation.

Last updated for commit f43b624.

schochastics and others added 3 commits December 2, 2026 21:08
The `start` alias of `coords` was silent before and now soft-deprecates,
but no test checked the deprecation or that the result is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…_parameter)

resolution_parameter was already deprecated with deprecate_warn() in 2.1.0.
Folding it into the generic 3.0.0 rename made the warning softer. Keep the
deprecated() formal and the hand-written bridge instead, so positional
legacy calls are recovered into resolution_parameter and still warn loudly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@schochastics schochastics reopened this Dec 3, 2026
@schochastics schochastics reopened this Dec 3, 2026
@schochastics schochastics reopened this Dec 3, 2026
@schochastics
schochastics merged commit 496c931 into main Dec 3, 2026
12 checks passed
@schochastics
schochastics deleted the claude/issue-2788-subagents-faw1t1-5 branch December 3, 2026 20:01
schochastics added a commit to schochastics/rigraph that referenced this pull request Dec 4, 2026
…ph#2863)

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: David Schoch <david@schochastics.net>
Co-authored-by: schochastics <schochastics@users.noreply.github.com>
(cherry picked from commit 496c931)
schochastics added a commit to schochastics/rigraph that referenced this pull request Dec 4, 2026
…ph#2863)

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: David Schoch <david@schochastics.net>
Co-authored-by: schochastics <schochastics@users.noreply.github.com>
(cherry picked from commit 496c931)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Algorithm-selection argument names: census of method/algorithm/algo/impl/implementation

3 participants